note 36550 deleted from function.ereg by kennyt

From: Date: Wed, 26 Jan 2005 03:47:39 +0000
Subject: note 36550 deleted from function.ereg by kennyt
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83960@lists.php.net to get a copy of this message
Note Submitter: monkey(AT)greyledge.net ---- To detect non-alphanumeric characters (for new username/password validation, for instance): if(ereg('[^A-Za-z0-9]', $username)){ echo "Usernames must contain only letters and numbers."; }else{ echo "$username is a valid username."; }

« previous php.notes (#83960) next »