Re: Submit button in forms revisited

Ralph Graw [RWG21657] (
Wed, 25 Jan 1995 15:58:17 +0100

[This message is converted from WPS-PLUS to ASCII]

> Thus, the standard should be ammended to say that all forms must have
> a submit button, but that for the case where a form consists solely of a
> single line text entry field, that pressing return may be considerd
> equivalent to selecting submit.

One browswer I use, Netscape, supports this feature - but... the forms I
build require the submit button to be named as I rely on the value of the
button to determine what action to take within my CGI script (the script
is general purpose and would normally be invoked from a form with multiple
buttons, but it's easy to envision only requiring one). In this scenario,
pressing Enter is not the same (in Netscape anyway) as pressing the sole
submit button. The submit occurs, but the POST data is not loaded with the
value of my button.

Would ACTION attribute(s) on the buttons themselves and/or on the text
fields help? I'm not deep into the DTD side of HTML so if this is
incredibly off base just ignore...