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
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'].