note 55566 rejected from faq by nlopess

From: Date: Sun, 07 Aug 2005 18:34:02 +0000
Subject: note 55566 rejected from faq by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93206@lists.php.net to get a copy of this message
Note Submitter: saw052003 at yahoo dot co dot uk ---- I start a session <?php session_start() ?> and continue like this.... $_SESSION['S_PHP_LIB']; $errors=array(); $page = $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; if (!ereg($page, $_SERVER['HTTP_REFERER'])) $errors[] = "Invalid referer\n"; but even if the information is from the real form, the $errors[] = "Invalid referer\n"; is still executed. i want to prevent spams.

« previous php.notes (#93206) next »