PHP Classes

Model Validation: Validate form values according to many rules

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 633 All time: 5,022 This week: 206Up
Version License PHP version Categories
model_validation 1.5GNU General Publi...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: 2056293 in United States United States
Week rank: 180 Up22 in United States United States Up

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:633
This week:0
All time:5,022
This week:206Up
User Comments (1)
Thats a very good class ;-) Useful i define the rules direct...
12 years ago (José Filipe Lopes Santos)
70%StarStarStarStar