Re: POST form to dynamic page name



On Jul 31, 12:30 pm, SMP <priggesco...@xxxxxxxxxxxxx> 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.

my answering doesn't imply that I agree with this method.

You could use a redirect method:

$option = $_POST['option'];
$option = //do validation
header("Location:$option.php");

.