AM <an*********@sbcglobal.net> wrote:
I am trying to get multiple submit buttons to work on my form. The
problem I am facing is that the wrong one gets triggered by default
when the user presses enter from any one of two textboxes on the form.
Is there any way to set that using html? I cannot use javascript for
my solution. Right now it seems that it is the first submit button on
the page that gets submitted and not the second like I want.
The theory is that the server-side program that processes the form can tell
the difference between a submit button and some other method for submitting
the form by whether the name=value pair for a submit button was included in
the submitted data.
The practice is that common browsers ignore this, and act as though the
first submit button was used when the form is submitted some other way.
The workaround is to make sure the first submit button does something
innocuous, such as allowing the user to preview the data they just entered.
--
Darin McGrew,
mc****@stanfordalumni.org,
http://www.rahul.net/mcgrew/
Web Design Group,
da***@htmlhelp.com,
http://www.HTMLHelp.com/
"The only things we keep permanent are those we give away" - Waite Phillips