luiddog wrote:<? echo $_server['http_referer'] ?>
No, that's wrong. It should be
$_SERVER['HTTP_REFERER']
PHP variable names and array indexes are both case sensitive. If you're wondering why it's HTTP_REFERER not HTTP_REFERRER, that's because Netscape's developers spelt it wrong when they first introduced it and ever since the spelling error has been maintained for compatibility.
Detecting the referrer is not 100% reliable as it can (and sometimes is) be blocked or disabled by web browsers, proxy servers, or other tools (some software "Firewall" or other desktop security applications block it).
Mark