I am trying to re-direct users to specific URLs depending on their input from another page. Code listed below:
<?php
$user1=999;
$user2=100;
$user3=200;
$account=$_POST["account"];
if ($account==$user1)
{
header ('Location: /support.html');
exit;
}
elseif ($account==$user2)
{
header('Location: /services.html');
exit;
}
elseif ($account==$user3)
{
header('Location: /about.html');
exit;
}
else
{
echo "this don't work";
}
?>
I have also tried ('Location: http://mydomain.com/about.html'); and to no avail.
Help redirecting URL based on user's input...
Moderator: General Moderators
Help redirecting URL based on user's input...
Last edited by surreylee on Mon Feb 10, 2014 8:02 pm, edited 1 time in total.
Re: Help redirecting URL based on user's input...
It just goes to a blank page