Forum Moderators: open

Message Too Old, No Replies

Identical submit buttons - different behaviour

MSIE(Win)

         

dcrombie

12:44 pm on Oct 25, 2005 (gmt 0)



This one has me stumped - but someone must have seen it before...

I've got a FORM something like:

<form method="post" action="action" enctype="multipart/form-data"> 
<input type="hidden" name="id" value="11">
... various form fields ...
<input type="submit" name="update">
<input type="file" name="file1">
<input type="file" name="file2">
<input type="file" name="file3">
<input type="submit" name="update">
</form>

Everything is fine in: Safari (Mac), Camino (Mac), Firefox (Mac, Win), MSIE (Mac), ...

But in MSIE (Win), when the _first_ submit button is clicked, the value of the hidden 'id' field is NOT included in the $_POST variables. However when the _second_ submit button is clicked (at the end of the form) the 'id' value IS passed. The other fields and files are always passed.

#*$!?!?

tedster

8:57 pm on Oct 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's a very odd report, and I can't say I've run into the phenomenon. Seems, if anything, we might see trouble the other way around, but even that doesn't make sense to me. I assume you've validated your mark-up and inspected for doubled use of the name attribute.

dcrombie

11:23 am on Oct 26, 2005 (gmt 0)



I've checked everything I can think of. The two submit buttons are identical in every way except the position they appear in the form. Every single other browser that I can get my hands on handles it properly.