Hey guys,
I've decided to stop banging my head against the wall and just ask you
guys for the answer. I can't seem to find it.
I have a form in which I have multiple submit buttons; only, I'm using
button tags, not input tags to do it. It seems that IE6 is treating
all the button elements as being successful on submit. This is, to say
the least, surprising since the Spec is pretty clear that it should.
To test this, i created the following trivial HTML page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Trivial Form Submit Test</title>
</head>
<body>
<form action="#" method="get">
<label>Field 1 <input name="field1" /></label><br />
<label>Field 2 <input name="field2" /></label><br />
<label>Field 3 <input name="field3" /></label><br />
<button name="Button1" type="submit" value="button 1">This is
button 1</button><br />
<button name="Button2" type="submit" value="button 2">This is
Button 2</button><br />
<button name="Multibutton" type="submit" value="Value 1">This
multibutton value 1</button><br />
<button name="Multibutton" type="submit" value="Value 2">This
multibutton value 2</button>
</form>
</body>
</html>
In IE I get the name/value pairs for all the buttons, as well as the
input vaules.
What fixes, if any, are there. I really don't want to use input
type="submit" or input type="image".
Thanks
Adam