note 9103 added to Control Structures

From: Date: Tue, 17 Oct 2000 03:07:16 +0000
Subject: note 9103 added to Control Structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-6543@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"; } http://www.php.net/manual/control-structures.php

« previous php.notes (#6543) next »