Re: Changing the Action attribute of Form
| From: | Ed Lazor | Date: | Wed, 01 Nov 2006 16:22:06 +0000 |
| Subject: | Re: Changing the Action attribute of Form | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244022@lists.php.net to get a copy of this message | ||
I'd chose the javascript route personally. You could use PHP's curl functions to rePOST the data, but that seems like more work than is necessary. My .02 cents. :) -EdJavascript: Have the submit button call a JS function which would check the state of the select and set the action appropriately before submitting the form.PHP: submit the result to a dispatcher script that'll redirect to one of the targets based on what has arrived in the data (you'll lose the ability to POST though).