Multiple Submit Buttons
Frequently I'm asked if, in a form, you can use two submit buttons and
determine which button was clicked when the form is submitted. Happily, the
answer is yes - and its *really* simple! The submit button is like other form elements - give it a name
in the input tag, and you're in business!
Click one of the buttons above and the script that processes the form will determine
which button was clicked and display the results. The code behind this script appears after
the form is submitted.
|