Re: through which submit button the form was submitted
- From: RobG <rgqld@xxxxxxxxxxxx>
- Date: Wed, 05 Apr 2006 23:19:51 +1000
stellstarin@xxxxxxxxx wrote:
as we are the middleware securing the backend application,we can't
able to change the html code in the backend application.
so we need to trace the details of the 'submit' button, when the form
submission was made .
(without adding anyother extra event handling ..like onclick())
In the HTML, give each submit button a different name and value. Whichever one is clicked will send its name-value pair.
From the spec:
"If a form contains more than one submit button, only the
activated submit button is successful."
<URL:http://www.w3.org/TR/html401/interact/forms.html#submit-format>
You can add onclick attributes using script without modifying the HTML at all (other than to add the script element of course), but don't make your form submission script dependent.
--
Rob
.
- Follow-Ups:
- Re: through which submit button the form was submitted
- From: arvindsd
- Re: through which submit button the form was submitted
- References:
- through which submit button the form was submitted
- From: stellstarin
- Re: through which submit button the form was submitted
- From: VK
- Re: through which submit button the form was submitted
- From: stellstarin
- through which submit button the form was submitted
- Prev by Date: Re: Cannot Call External Javascript From a Text Link
- Next by Date: Re: radiobuttons and events
- Previous by thread: Re: through which submit button the form was submitted
- Next by thread: Re: through which submit button the form was submitted
- Index(es):