1 Form, 2 Actions?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

1 Form, 2 Actions?

From: Mark <Mark.Fenbers@noaa.gov>
Date: Thu Mar 30 2006 - 13:58:18 CEST

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
Received on Mon May 1 02:44:55 2006