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)) { Need to allow spaces in the regular expression. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php