PHP Classes

Custom Form Validation: Validate form values according to several rules

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 762 This week: 1All time: 4,431 This week: 560Up
Version License PHP version Categories
form-validation 1.0GNU Free Document...5.0PHP 5, Validation
Description 

Author

This class can be used to validate form values according to several rules.

It can check field values of forms submitted using the POST method and perform several types of validation.

Invalid values are associated to given error messages.

Currently it can validate field values with rules: has alphanumeric characters, is a date or time, is an e-mail, has only numbers, has an exact or minimum length, is different from another field, is not empty, is a phone number, is an URL, or is an social security number.

It may also clean values to prevent cross-site scripting attacks.

Picture of johno dread
Name: johno dread is available for providing paid consulting. Contact johno dread .
Classes: 7 packages by
Country: United States United States
Age: ???
All time rank: 1115162 in United States United States
Week rank: 416 Up46 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imageclasses (5 files)
Files folder imageforms (3 files)
Files folder imagejs (1 file)

  Files folder image Files  /  classes  
File Role Description
  Accessible without login Plain text file ajax.php Aux. Process post value before it gets submitted
  Accessible without login Plain text file register.php Example Demonstrates validating all fields on a registration form
  Accessible without login Plain text file sign_in.php Example Demonstrates validating a simple form
  Accessible without login Plain text file test_comment.php Example Demonstrate removing all script(eg. <?php, <script> etc..) tags comment form.
  Plain text file validation.php Class main class

  Files folder image Files  /  forms  
File Role Description
  Accessible without login Plain text file comment_form.php Aux. Comment form
  Accessible without login Plain text file user_profile.php Aux. Demonstrates a complex registration form
  Accessible without login Plain text file user_signin.php Aux. sign in form

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file jquery.js Data script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:762
This week:1
All time:4,431
This week:560Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1633