Re: Is there a verification class in PEAR ?

From: Date: Mon, 10 May 2004 09:25:09 +0000
Subject: Re: Is there a verification class in PEAR ?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12386@lists.php.net to get a copy of this message
"Pete" <webmaster@dentona.de> wrote in message news:20040510091117.13796.qmail@pb1.pair.com... > Hi, > > I am wondering if there is something like a verification class in PEAR with > which one could check forms and vars sent via URL. Testing for integers, > strings, etc,etc > > Thank you very much The Validate package is what you're looking for: http://pear.php.net/package/Validate You can check numbers, email, strings, zip codes and so on. To check strings posted via forms you can use Validate::string by defining a pattern of allowed characters. Take a look at the Validate.php cource code, at the top there are some patterns predefined. You can define your own patterns by extending those. Regards, Torsten

« previous php.pear.general (#12386) next »