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 msg:1248989 5:39 pm on Jan 11, 2005 (gmt 0) 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.
Salsa msg:1248990 6:26 pm on Jan 11, 2005 (gmt 0)
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.
GreenLeaf msg:1248991 6:46 pm on Jan 11, 2005 (gmt 0)
Thanks, this confirmed my feelings :-))