Re: POST form to dynamic page name
- From: ELINTPimp <smsiebe@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 16:36:08 -0000
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");
.
- Follow-Ups:
- Re: POST form to dynamic page name
- From: Jerry Stuckle
- Re: POST form to dynamic page name
- References:
- POST form to dynamic page name
- From: SMP
- POST form to dynamic page name
- Prev by Date: Re: fopen - append works, write fails (but file is truncated)
- Next by Date: Re: mySQL Apache PHP conflict problem
- Previous by thread: POST form to dynamic page name
- Next by thread: Re: POST form to dynamic page name
- Index(es):