PHP and Page Redirection
I have a problem involving redirecting to another page based on the users choice.
Basically I have a page that contains PHP variables on it. These were posted to the page from a previous page. Depending on what the value of the variables, I want to redirect the user to another page.
Example:
$Enrol = "Yes";
$Accommodation = "No";
$Airport = "Yes"
$WebAddress = " ";
<?php if($Enrol == "Yes")
{
$WebAddress = "Http://www.Enrol.com";
}
.
.
.
<FORM ACTION=<?php $WebAddress>
So if $Enrol is set to "Yes", then I want to redirect the user to the EnrolPage.php. If not, redirect them to the other pages...
But this doesn't seem to work. Does anyone have any idea how I can overcome this problem.
Thanks,
joanncae.
|