Hi,
I wanted to use the Button Element to submit a form like this example:
<form action="/test.exe" method="post">
<button id="ID_BUTTON_OK" name="_WEB_EVENT_HANDLER_" type="submit"
value="ID_BUTTON_OK">Login</button>
</form>
If I submit the form, the _WEB_EVENT_HANDLER_ gets the value "Login",
but as defined in HTML 4.01 the value which is submitted should be the
value field in the Button Element ("ID_BUTTON_OK" in this case).
I'm using the newest Internet Explorer Series 6. At the Mozilla
Browser it works perfectly!
Is the Internet Explorer doing this thing totally wrong??? Or am I
doing this thing wrong? Thank's for help!
Dominik
HTML 4.01
---------------------------------------------------------
17.5 The BUTTON element
<!ELEMENT BUTTON - -
(%flow;)* -(A|%formctrl;|FORM|FIELDSET)
-- push button -->
<!ATTLIST BUTTON
%attrs; -- %coreattrs, %i18n, %events
--
name CDATA #IMPLIED
value CDATA #IMPLIED -- sent to server when
submitted --
type (button|submit|reset) submit -- for use as form button
--
disabled (disabled) #IMPLIED -- unavailable in this context
--
tabindex NUMBER #IMPLIED -- position in tabbing order --
accesskey %Character; #IMPLIED -- accessibility key character
--
onfocus %Script; #IMPLIED -- the element got the focus --
onblur %Script; #IMPLIED -- the element lost the focus
--
---------------------------------------------------------