<button> tags don't submit the data as w3c standard sais should submit

  • Thread starter Thread starter David Nordenberg
  • Start date Start date
D

David Nordenberg

If you have
<form method="post" action="somepage">
<button type="submit" name="testbutton" value="testing">This is a test
button <img src="test.jpg">
</button>
</form>

and press that button and check the posted stuff in "testbutton" it contains
the text between <button> and </button> (including the <img ...>) and not
just "test" as value is set to and that is what w3c sais to send. Value
should be sent, not the button content.

A clear bug in Internet Explorer 6 SP2 (and less?)

Regards,
David Nordenberg
 
Sorry for spaming the list but the page at microsoft.com which I posted from
told me that an error occured and it wasn't sent :(
 
Back
Top