View Single Post
Old 05-07-2012, 11:54 AM   PM User | #11
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,516
Thanks: 45
Thanked 440 Times in 429 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Quote:
Originally Posted by Link187 View Post
Tested everything (from the posts above) in IE6 and IE7 and verified what you wrote apart from when I replaced:
<input type="submit" name="submit" value="Then the next time, click this">
with:
<INPUT TYPE="image" SRC="images/signup.png" HEIGHT="25" WIDTH="63" BORDER="0" ALT="Submit Form">
Tangoforce
Not true. In reality (in both IE6 and IE7) when I pressed enter it actually came back with:
Code:
Your data was processed!
Which indicates that it is sending some kind of value and the bug doesn't occur if you use an image!
This also avoids the second issue with javascript (described by felgall) because the image input type doesn't have a name field.

Would love to hear thoughts on this as this is the solution I have to use..
You're not even using a field type with a name for your image and you're also not posting your PHP processing code to show what you actually did on the server.

While I don't doubt that there may be truth in what you're saying, I never said that it wouldn't work (thats in reference to your "Not true" remarks). I simply said the image had no name="" or value="" attributes and therefore they would not be sent. It's possible that IE (in relation to felgalls comments) will automatically send a $_POST['submit'] field for an image based submit - this could be a empty value or an array of x and y as felgall has mentioned. If it does, then that is a completely different issue and not related to the submit button issue.

To comment any further on your data processed message you'd need to post your complete code for both the html and the php.

Quote:
Originally Posted by Dan13071992 View Post
just out of curiousity, does anyone know if this bug is still in IE, as Ive seen on TV the Internet Explorer 9 is coming out/ Already out?
I seem to recall someone else testing it and saying it was there. I see no reason for MS to suddenly fix this bug as I doubt they would consider it an important one. Even if it is fixed you should still code to avoid it for all the users of older versions.

I never expected this topic to become so popular so many months after posting it!
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.

Last edited by tangoforce; 05-07-2012 at 11:58 AM..
tangoforce is offline   Reply With Quote