Re: Validation functions

From: Date: Sat, 22 Jun 2002 15:59:52 +0000
Subject: Re: Validation functions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7290@lists.php.net to get a copy of this message
On Sat, 22 Jun 2002 16:44:03 +0100 Michael Dransfield <mike@blueroot.net> wrote: > I have written a Validate_UK class which can check for valid uk postcodes > and NI numbers (ssn) and it struck me that the way that Validate is > structured means it is difficult to validate a post/zip code / ssn from > ANYWHERE. Ive put together a rough function which i think should be > included into the main Validate class. It relies on each of the country > specific objects being named consistantly, and there being a method called > getZipValFunc(), this will return a string with the name of the function to > validate postcodes, which can be anything that the author chooses. This > function must return bool if it is valid or not, or an error. Do you use the same interface definition as the US ssn module ? btw, if anyone has custom and useless bank account numbers, rib,... valid in Europe (generally gave by the banks), you could send me for tests purposes (iban, rib modules). pa

« previous php.pear.dev (#7290) next »