Validate_DE
| From: | Stephan Schmidt | Date: | Mon, 20 Oct 2003 21:05:01 +0000 |
| Subject: | Validate_DE | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-22852@lists.php.net to get a copy of this message | ||
Hi,
I just developed a small add-on for the Validate package that is able to
do some validation that's needed for German sites.
Currently it's able to validate:
- postcode (only format)
- bankcode (only format)
- dialing codes (checks for mobile phone or commercial number)
- phone number
- 0700 phone number (a number you keep your whole life)
These were the only validation rules I needed, more could possible
follow...
At least there's a foundation for the German package..
You can take a look at the sourcecode at:
http://www.php-tools.de/PEAR/Validate/DE.phps
And an example:
http://www.php-tools.de/PEAR/Validate/example.phps
Should I just commit this to CVS? Can it be included in the next
version?
Stephan
---
Stephan Schmidt
schst@php-tools.net
http://www.php-tools.net