st*********@gmail.com 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