Re: Verifying a certain amount of numbers

From: Date: Wed, 16 Jul 2003 13:08:16 +0000
Subject: Re: Verifying a certain amount of numbers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155404@lists.php.net to get a copy of this message
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!


« previous php.general (#155404) next »