submitted by: Guest
PHP: show referring URL
Grabs the referring URL - get the HTTP_REFERER and save it to a variable.
code snippet:
<?php
$ref = getenv("HTTP_REFERER");
echo $ref;
?>
<?php
$ref = getenv("HTTP_REFERER");
echo $ref;
?>
