Re: Validation class
| From: | Brent Cook | Date: | Thu, 11 Apr 2002 13:01:07 +0000 |
| Subject: | Re: Validation class | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5357@lists.php.net to get a copy of this message | ||
I have some rules (well, a document on them) for validating credit card
numbers. They merely distinguish between a possible valid number and
random line noise, but they should be good enough. I will write an
algorithm for them soon.
On Thu, 11 Apr 2002, Martin Jansen wrote:
> On Thu, 11 Apr 2002 01:07:18 +0200, Wolfram Kriesing wrote:
>
> >what do u think of having a validation class inside PEAR,
> >which validates various stuff,
> >such as:
> >- check if value is a number
> >- check if value exists at all
> >- check if value is at least X characteers long
> >- check if value is a proper date
> >- check if value is a proper email address
>
> When I think of validation, some routines to check the
> validity of postal codes, telephone numbers or credit
> card ids come to my mind. But since there are no international
> rules for such numbers, we would need to make some heavy I18N
> here (Germany has e.g. postcal codes with 5 digits, while
> Belgium has only 4 digits).
>
> Anyways, if you want to take over this task, feel free to do
> it ;-).
>
> - Martin
>
> --
> Martin Jansen, <mail@martin-jansen.de>
> http://www.martin-jansen.de/
>
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>