Re: Changing the Action attribute of Form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    Javascript: 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).

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. :)

-Ed

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux