Login   Register  
PHP Classes
elePHPant
Icontem

Model Validation: Validate form values according to many rules

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 (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-08-22 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 617 All time: 4,671 This week: 1,559Up
Version License PHP version Categories  
model_validation 1.5GNU General Public Lice...5.2HTTP, PHP 5, Validation
Description Author  

This class can validate form values according to many rules.

It can take an array of rules that associate the name of form input values and the rules they must satisfy to be valid.

The class traverses the array of submitted values and checks if they satisfy the specified rules. All the validation errors can be returned in a single array.

Currently it supports validating the submitted values as alphanumeric text, as numbers, and as e-mail addresses.

Picture of t withers
Name: t withers <contact>
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 2090264 in United States United States
Week rank: 641 Up73 in United States United States Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example using Validation Class
Plain text file Validation.php Class Validation Class

 Version Control Unique User Downloads Download Rankings  
 0%Total:617All time:4,671
 This week:0This week:1,559Up
 User Comments (1)  
 
Thats a very good class ;-) Useful i define the rules direct...
2 years ago (Josť Filipe Lopes Santos)
70%StarStarStarStar