troubleshooting Question

Submt variable not set in IE

Avatar of themitch2004
themitch2004 asked on
HTMLPHP
8 Comments1 Solution311 ViewsLast Modified:
I have a form which seems to work fine in Firefox but not so fine in IE6/7.

The form submits, via the POST method to itself. When I reload the page I check to see using the following code:

         if ( $_POST['Submit'] == 'submit' ) {

Lower down the page I have the submit button defined as follows:

        <input name="Submit" type="submit" src="images/savebtn.jpg" value="submit">

Originally I had the type set to image (hence the src attribute) but have just changed it to a submit type to see if it works better - as i say, it doesn't,

Before the button I have the form defined as ...

          <form name="budget" method="post" action="mybudget.php">

I am using PHPED to write this code and when I run it with the debugger and look at the variables, the $_POST['Submit'] variable isn't there. There is, however, a $_POST['Submit.x'] and $_POST['Submit.y'] variable.

Any idea why this isn't working.

Website is at www.jwedding.co.uk

Thanks
M

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros