Login   Register  
PHP Classes
elePHPant
Icontem

Form Validator: Validate values submitted via Web forms

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-12-12 (10 years ago) RSS 2.0 feedStarStarStar 50%Total: 6,297 All time: 316 This week: 1,472Down
Version License Categories  
formvalidator 1.0BSD LicenseText processing, Validation
Description Author  

This class is meant to provide server side validation of field values submitted via Web forms.

It can validate fields on following criteria:

- Required field
- Content ( email, digit, alpha, alpha-numeric )
- Own perl or posix regular expression
- Length ( min, max, equal )
- Only defined values ( for select, radio and checkbox )
- Forbidden values
- Field values dependecies
* Value can only exist with other field(s)
* Value must be equal to other field(s) ( ex. password verification )
* Value must exists OR/XOR other value(s)
- It handles fields named like an array ( ex. radiobox/checkbox )
- It can highlight the invalid fields ( with Smarty templates )
- It can return an array which information which fields were invalid ( with field name, or logical name )

Picture of Andrzej Pomian
Name: Andrzej Pomian <contact>
Classes: 1 package by
Country: Poland Poland
Age: 33
All time rank: 40912 in Poland Poland
Week rank: 1779 Down51 in Poland Poland Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example of usage
Plain text file FormValidator.class.php Class Main class

 Version Control Unique User Downloads Download Rankings  
 0%Total:6,297All time:316
 This week:0This week:1,472Down
 User Ratings  
 
 All time
Utility:72%StarStarStarStar
Consistency:77%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:1567