sroughley wrote:I had found alot of other posts saying that HTTP_REFERER doesn't work, but none really explaining why.
Well for one, the Referer HTTP header isn't a required header, so you should never depend on its presence. Since it is also a client-provided header, it should never be trusted to be correct or unaltered, either. Thus its use is commonly frowned upon since it's unreliable (both its existence and integrity).
Also, you never showed us any code as to how you're trying to use it. In your first post, you asked about "another variable" that might be used, but this I think points to your problem: HTTP_REFERER (or even $HTTP_REFERER) isn't a variable at all. $_SERVER['HTTP_REFERER'], on the other hand, is most likely what you're referring to.