Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
$_SERVER['PHP_SELF'] or $_SERVER['HTTP_REFERER']? For clicks tracking? GreenLeaf
I f i need to fix the page name from which the click was originated, what is better to fix: $_SERVER['PHP_SELF'] or $_SERVER['HTTP_REFERER']? I mean the click to an external resource. Thanks.
If I understand you correctly, I think you want $_SERVER['PHP_SELF']. $_SERVER['HTTP_REFERER'] tries to tell you where a visitor came from in order to get to the current page, but when clicking to an external resource, the click is coming from $_SERVER['PHP_SELF'].
I hope this helps.
Thanks, this confirmed my feelings :-))