PHP Classes

PHP Validation Class: Validate form inputs according to different rules

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 182 All time: 8,606 This week: 423Up
Version License PHP version Categories
php-form-validator 1.0.0Free For Educatio...5PHP 5, Validation
Description Author

This class can validate form inputs according to different rules.

It provides different functions that can validate values using different rules and returns 1 or 0 depending on whether the value is valid.

Currently it can validate required values, email addresses, minimum, maximum and exact length, number between a range, letters or digits, check file name extensions, IP addresses, date ranges, etc..

Picture of raghavender
  Performance   Level  
Name: raghavender <contact>
Classes: 2 packages by
Country: India India
Age: 35
All time rank: 3645252 in India India
Week rank: 820 Up69 in India India Up

Details

This class validates form at server side with rules and messages by user. It works as Jquery validation plugin fashion. When click on form submit button, will make a ajax call and send form data. After validate the data with defined rules, display the error messages to corresponding input fields which are defined as messages.

Features: - Server side validation, but looks like client side validation - Easy to define rules and messages for each input field - Rules and error messages are define in array format - It Validates all input types including input type 'file' - Validation Types: not_empty, min_length, max_length, alphaonly, alphanumonly, splalphanumonly, ip address,regular expressions, file extensions, date_format, min_date, max_date

  Files folder image Files  
File Role Description
Files folder imagelibs (2 files)
Accessible without login Plain text file ajax_call.php Aux. Request form submit data
Plain text file class.rules.php Class Define the rules and messages
Accessible without login Plain text file index.php Aux. Bootstrap form with input fileds
Accessible without login Plain text file jquery.min.js Data Jquery default library file
Accessible without login Plain text file readme.md Doc. describes class features

  Files folder image Files  /  libs  
File Role Description
  Plain text file class.validator.php Class class of validation functions
  Accessible without login Plain text file validate.php Example validate form input fields

 Version Control Unique User Downloads Download Rankings  
 100%
Total:182
This week:0
All time:8,606
This week:423Up
For more information send a message to info at phpclasses dot org.