Menu
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;
$url=’
$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: [url]http://mydomain.com/about.html’);