Re: 1 Form, 2 Actions?



I don't see what the problem is. It is possible to have more than one submit
button on any form, with each one having a unique name instead of 'submit'.
So if you have a form with 'buttonA', 'buttonB' and 'buttonC' when the user
presses one of those buttons that will be the ONLY one to appear in the POST
array. I have been using this technique for years, so don't tell me that it
doesn't work.

--
Tony Marston

http://www.tonymarston.net


"Mark" <Mark.Fenbers@xxxxxxxx> wrote in message
news:e0gjmt$gbg$1@xxxxxxxxxxxxxxxxxxxxx
I have a lengthy form (i.e., many inputs) on my form.php page. What's
different about this form than many others I've created is that I want the
user to have a choice of submitting this form data to one of two pages,
choice1.php or choice2.php, both of which read $_POST data from the form.

Obviously, a 'submit' button will send the user to the page specified by
the form's 'action=' setting, so I would have to employ some sort of
trick. But this is where I'm drawing a blank! What combination of PHP,
Javascript, and HTML would do the trick?

Thanks!
Mark



.


Quantcast