Validating forms in PHP
Using validation class from PEAR http://pear.php.net/package/Validate, it's very easy to validate forms. Forms validation is neede in order to protect your website from xss injection, sql injection, email injection. For example if you are expecting an email address in a field, you should validate that field for an email address.
This class validation from PEAR has the following validation methods:
- number
- date
- string
- and more
No comments:
Post a Comment