Login   Register  
PHP Classes
elePHPant
Icontem

Validator.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kevin Burke  >  Validator.php  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Validator.php
Base name: validator
Description: Form Validation class
Related classes: , , , , , ,
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 5414 users
All time rank: 362
Week users: 3 users
Week rank: 1194
 

  Author  
Picture of Kevin Burke
Name: Kevin Burke <e-mail contact>
Packages: 2 Browse all classes by Kevin Burke Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 30
All time rank: 27831 in United States United States
Week rank: 817 Down80 in United States United States Down


  Detailed description  
This class is meant to validate data entered in forms.

It provides 11 types of validation. To specify a field to validate it requires the field name and, in some cases, other arguments.

The class will return false if the validation failed.

Validator has support to check if a field is or has:
- filled in
- of specified length (<, >, >=, <=, =)
- a valid email
- a string equal in string value to another field
- a string between two values (string length)
- punctuation
- an integer of specified value (<, >, >=, <=, =)
- an integer between two values
- only alphabetic characters
- only alphanumeric characters
- a date of specified format

  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Validation Validation algorithms View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (81.5%)
Good (84.8%)
-
Good (80.4%)
-
-
Not sure (57.3%)
1005
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
HTML file form.html Data Form file
Plain text file validation.php Example validation test
Plain text file Validator.php Class Class file

Download all files: validator.tar.gz validator.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.