I'm trying to get this code to work but it seems to only be bringing up the first if and ignoring the rest regardless yet when I print the $HTTP_REFERER it's showing the correct data. here is the code
if ($HTTP_REFERER == "page1.html")
{
$page = "1";
$rank = "1";
$redirect = "page1a.html"
}
elseif ($HTTP_REFERER == "page2.html")
{
$page = "2";
$rank = "2";
$redirect = "page2a.html"
}
elseif ($HTTP_REFERER == "page3.html")
{
$page = "3";
$rank = "3";
$redirect = "page3a.html"
}
else
{
$page = "0";
$rank = "0";
$redirect = "page_err.html"
}