Topic: Button tag is behaving funcky in IE but works ok ok Firefox

<form $PHP_SELF' method="post">
 <button type="submit" name="Update">Update</button>
 <button type="submit" name="Cancel">Cancel</button>
 </form>

Internet Explorer: (6.2) also in 7.0
         Whatever  button you press, both buttons get posted.

Firefox: (3.0)
         Only one gets posted, the one you pressed


SO.... if I have an Edit Form with both buttons
UPDATE - commits the data and return to calling page
CANCEL - do not update, just return to calling page

AT the MOMENT in IE it updates on CANCEL also:/

my source validates

Re: Button tag is behaving funcky in IE but works ok ok Firefox

Seems Am not the only one

Most Solutions offered are JavaScript related. Which to me is not a solution

These are some discussion on this problem:

sad I have a Ton of buttons with this issue all over the place. I'm just gonna go thru my pages and look for Forms with multiple <button> tags and then remove the <button> tag and go with INPUT type=submit


BTW, this problem has been fixed in IE8

Re: Button tag is behaving funcky in IE but works ok ok Firefox

maybe you are leaving an open quote in the form tag.