I am trying to get the referring URL with PHP using:
echo $_SERVER['HTTP_REFERER']
This is working, however when I attach variables to the URL string with "&"s, the referer shows as blank. If the &'s are replaced with the html version "& a m p;", the referer works again.
I need a way for the referer to work with the "&" symbol.
The referrer is going to be captured from tracking URLs like this one:
http://www.example.com/link.php?var1=data&var2=data&var3=data
Any suggestions/solutions would be greatly appreciated!
**I realize that the referer may be spoofed, but still wish to access this information.
<a href="http://www.example.com?var1=data&var2=data&var3=data" ...is the correct form. However, none of this should be affecting the Referer...