note 46575 deleted from function.explode by sean

From: Date: Fri, 15 Oct 2004 20:22:56 +0000
Subject: note 46575 deleted from function.explode by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78609@lists.php.net to get a copy of this message
Note Submitter: BIGDADDY at psystash dot com ---- Email address validation via PHP: //begin email check $pieces = explode("@", $email); $i=0; while ($pieces[$i]!=null){ $i=$i+1; } if($i<2) die("INVALID EMAIL ADDRESS <br><br> <a href=\"javascript:history.back()\"><-- Back</a> "); $pieces = explode(".", $email); $i=0; while ($pieces[$i]!=null){ $i=$i+1; } if($i<2) die("INVALID EMAIL ADDRESS <br><br> <a href=\"javascript:history.back()\"><-- Back</a> "); //end email check ---- Reason: specifically told not to do this

« previous php.notes (#78609) next »