I'm having a problem using $SERVER['HTTP_REFERER']; I have a website and I want to know where new members are coming from before they click on my home page. The home page of my site does have a .php extension. I am using $page = $SERVER['HTTP_REFERER']; but for some reason it will not register the information I need. I have tried other variables such as $SERVER['REMOTE_ADDR'] and $SERVER['HTTP_USER_AGENT'] and these work perfectly. Any ideas on why $_SERVER['HTTP_REFERER'] won't work. Yes, I have tried going to the home page from a link outside of my site. I've tried this function using javascript and it works, only problem is I don't know how to change a javascript variable into a php variable. Any ideas on that one too?
Thanks in advance for any help.