note 55160 deleted from function.is-numeric by nlopess

From: Date: Sat, 24 Sep 2005 10:29:19 +0000
Subject: note 55160 deleted from function.is-numeric by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-95700@lists.php.net to get a copy of this message
Note Submitter: strohel at hotmail dot com ---- ishmaelmakitla at yahoo dot com: Simplier would be if you used regular expressions - it would look like this: <?php if(!ereg("^[\. a-zA-Z]{1,}$", $name)) die("Error: Name contains unallowed chars"); ?> See http://mirrors.inway.cz/manual/en/ref.regex.php Good REGEX reference: http://www.regular-expressions.info/reference.html Good luck.

« previous php.notes (#95700) next »