I have visitors coming to my site from 5 seperate sources, each one sends a variable in the url based on where its from, in the event these sources sends visitors I want to send them to a seperate page thats more relevant to the user
<?php
$var = $_GET["var"];
if( $var='site1')
{
header('Location: ' . "http://www.mysite.com/site1page");
}
else
{
header('Location: ' . 'http://www.mysite.com/othersites/&?var='.$var,);
}
?>
however no matter what $var comes in has its going to the first header location(site1page) Can anyone explain why this is happening?