note 9103 deleted from control-structures by jimw
| From: | jimw@php.net | Date: | Thu, 20 Dec 2001 23:10:34 +0000 |
| Subject: | note 9103 deleted from control-structures by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23542@lists.php.net to get a copy of this message | ||
You can use extra expressions to help refine your if statement. A simple example here checks to see
if the page that is loaded was from a different website. This code relies on the HTTP_REFERER from
the browser and may not work 100%
if (eregi ($SERVER_NAME, $HTTP_REFERER)) {
print "You were linked here from $HTTP_REFERER";
}