Multiple Submit Button On HTML Form
Whatever November 3rd, 2008
Identifying the submit button in the server side
The name and value of the button that is used to submit the form is passed along with the other data to the server script. For the button above, when you click on the submit button, the data passed to the server side script is mysubmit=Click!
Having Multiple Submit buttons
You can have more than one submit button in a form. But, how to identify from the server side which button submitted the form?
One way is to have different names for the submit buttons.
1 2 | <INPUT type="submit" name="Insert" value="Insert"> <INPUT type="submit" name="Update" value="Update"> |
| Tags: HTML, Tutorial |



About



