One form, same values, different directions

Imagine random form.

Now imagine two buttons, one redirects to example1.php and passes all the values and contents through POST, the other redirects to example2.php and as well, passes all values and contents through POST.

Is it possible to have 2 buttons, going to different pages performing different actions that originate from the same form with the same possible value of the same input fields?

I’ve never tried it, but it seems like this could work

action
The URI of a program that processes the form information. This value can be overridden by a formaction attribute on a <button> or <input> element.

1 Like

http://www.wufoo.com/html5/attributes/13-formaction.html

Yep, that’s about as good as it gets. Thanks.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.