Hi,
Try this:
1st add a hidden field into the form
<input type=hidden name=button value="">
2nd you'll need a JavaScript-function that changes the value of the hidden
field
(depending on the given parameter) and submits the form.
function submitForm(button) { ... }
3rd change your submitbuttons into normal ones and add an onClick-method
which
will run the funktion.
hope this helps
eike
Jose Miguel Rodriguez schrieb:
> Hello all,
>
> I'm developing a mini applications server for internal purposes, and now I'm
> facing with a problem: suppose I have the following html code:
>
> <form action=/servlet/.....>
> <input type="SUBMIT" NAME="btn_1" VALUE="First button">
> <input type="SUBMIT" NAME="btn_2" VALUE="Second button">
> </form>
>
> How do I know when user press the 1st or the 2nd button?
>
> Thanks in advanced
>
> --
>
> saludos,
> jmiguel
>
> Virtual Software,
> http://www.virtualsw.es/
> ICQ 13550064
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html