Forms submission - buttons

Marc Salomon (marc@library.ucsf.edu)
Thu, 4 Nov 1993 10:56:07 -0800


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 \\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\