Welcome to WebmasterWorld Guest from 54.162.240.235

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

$_SERVER['PHP_SELF'] or $_SERVER['HTTP_REFERER']?

For clicks tracking?

     
5:39 pm on Jan 11, 2005 (gmt 0)

10+ Year Member



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.
6:26 pm on Jan 11, 2005 (gmt 0)

10+ Year Member



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.

6:46 pm on Jan 11, 2005 (gmt 0)

10+ Year Member



Thanks, this confirmed my feelings :-))
 

Featured Threads

Hot Threads This Week

Hot Threads This Month