Forms submission - buttons
Marc Salomon <marc@library.ucsf.edu>
Date: Thu, 4 Nov 1993 10:56:07 -0800
From: Marc Salomon <marc@library.ucsf.edu>
Message-id: <199311041856.AA26036@library.ucsf.edu>
To: www-talk@nxoc01.cern.ch
Subject: Forms submission - buttons
Hello-
First off, I would like to give an accolade to the ncsa team for their fine work
on forms. Good job.
From what I gather from the documentation, there is a single ACTION associated
with each FORM. This means that every <INPUT TYPE="SUBMIT"> button, no matter
what it's label, does the same thing. We need to add some method of
determining, in the case where we have multiple <INPUT TYPE="SUBMIT"> buttons,
how did I get here? Joel Richardson mentioned this in his message of 10 Oct,
but that was before 2.0.5.
Would it be possible to include an attribute to the <INPUT TYPE="SUBMIT"> tag
that would encode the value of the button in the URL that would still be
built by <FORM ACTION={URL prefix}>?
The way it is now:
<input type="reset" VALUE="CLEAR">
<input type="submit" VALUE="SEARCH">
<input type="submit" VALUE="DEFINE">
<input type="submit" VALUE="REFINE">
<input type="submit" VALUE="BROWSE">
Hitting each type="submit" button does the same thing. The VALUE does not get
encoded into the URL.
I would like to see something akin to:
<input type="reset" VALUE="CLEAR">
<input type="submit" name="search" VALUE="SEARCH">
<input type="submit" name="define" VALUE="DEFINE">
<input type="submit" name="refine" VALUE="REFINE">
<input type="submit" name="browse" VALUE="BROWSE">
with an URL encoding scheme some variant of:
action+submit_name?name=value&name=value . . .
-marc
marc@ckm.ucsf.edu
//////////////////////////////////////////////////////////////////////////////
// Marc Salomon e-mail: marc@ckm.ucsf.edu \\
\\ Software Engineer //
// Innovative Software Systems Group phone: 415.476.9541 \\
\\ UCSF Center for Knowledge Management //
// 530 Parnassus SF, CA 94134-0840 fax: 415.476.4653 \\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\