Originally posted by xentrix
How can I get the URL of the page from which the user comes on my page, please?
$var=$_SERVER['HTTP_REFFERER'];
HTH,
dalecosp
SELF-EDIT: that's:
$var=$_SERVER['HTTP_REFERER'];
unless version < 4.1.0, in which case:
$var=$HTTP_SERVER_VARS['HTTP_REFERER'];
Also, from the manual:
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.