[7325] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: Submit button in forms revisited

daemon@ATHENA.MIT.EDU (Ralph Graw [RWG21657])
Wed Jan 25 10:51:07 1995

Date: Wed, 25 Jan 1995 15:58:47 +0100
Errors-To: listmaster@www0.cern.ch
Reply-To: graw~rw@glaxo.com
From: "Ralph Graw [RWG21657]" <graw~rw@glaxo.com>
To: Multiple recipients of list <www-talk@www0.cern.ch>

[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...

ralph

home help back first fref pref prev next nref lref last post