if(!ereg('^[0-9]{6}$',$string) die('not six numbers');

you might want to trim off white space first.

Ron Allen wrote:

I would like to know how to verify that there are 6 numbers (only numbers in
a field)
that will be submitted to a database?  Any clues!





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to