On Fri, 5 Nov 2004 20:55:00 +0200, Phpu <phpu@xxxxx> wrote: > if(ereg("^[a-zA-Z0-9_]{2,30}$", $name)) {
if(ereg("^[a-zA-Z0-9_\ ]{2,30}$", $name)) {
If you use ereg, use [[:blank:]] instead of an actual space, that allows for tabs and other variants too
Rene
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php