I am trying to create a tell a friend script
I am using
if($SERVER['HTTP_REFERRER'] == NULL){
$sitename = 'Http://www.mysite.org/';
} else {
$sitename = $SERVER['HTTP_REFERRER'];
}
For some reason it is not picking up the referrer.
It is always sending to the index.php page.
what am I doing wrong?