Posted by Tom on 07/31/07 17:26
On Tue, 31 Jul 2007 09:30:41 -0700, SMP wrote...
>
>I've got a simple form with an HTML OPTION block. I'd like to POST the
>form to a page whose name is based on the OPTION they select.
>
>So for example say the user selected this option, I'd like to POST the
>form to a page named "memory.php".
>
>echo "<option value=\"memory\">Memory Utilization</option>";
>
>Any PHP strategies you could provide would be appreciated. Thanks.
>
Maybe you can use Javascript for part of it only, and use an "onChange" event to
load the appropriate form with the proper action. At that point you can fill in
the PHP you needed.
PHP is parsed at the server and since your form action is already determined at
that point, it might be more of a headache trying to pull that off in PHP alone.
Tom
--
Download newsgroup MP3's to your Cell or PDA
Free Trial - http://newsguy.com/cellphone.htm
[Back to original message]
|