HTML.form.guide

Web Forms

How to create a multi-submit form

Imagine you have a form that needs to be processed by different scripts based on user's input. (example: ‘update’ or ‘create new’) . You can use JavaScript to switch the action field of the form just when the submit button is pressed. See the page below for some examples: Switching the form's ‘action’ field dynamically What we will try to do in this post is still more adventurous: submitting the same form to multiple scripts at the same time!

Continue Reading →