PHP Classes

jForm Validator: Validate forms with rules defined in form template

Recommend this page to a friend!
  Info   View files View files (0)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
-StarStarStar 56%Total: 1,309 All time: 2,874 This week: 636Up
Version License PHP version Categories
jform-validation 9.0GNU General Publi...9.0HTTP, PHP 5, Validation
Description Author

This class can validate forms with rules defined in form template.

It takes as parameter HTML template that defines the layout of a form with inputs.

The class can validate the submitted form values using rules defined in HTML attributes of the input tags in the the form HTML template.

It supports rules defined in HTML 5 specification as well other custom types of validation rules like required, week, month, color, creditcard, url, integer, number, range, email, alphabetic, alphanumeric, time, datetime, datetime-local, date, captcha, zipcode, countryelement, maxlength, minlength, min, max, mustmatch, enum and callback.

The class can also parse the template to remove the validation attributes that are not valid in HTML 4 or HTML 5, and then it replaces the input values attributes with the form submitted values.

Innovation Award
PHP Programming Innovation award nominee
May 2012
Number 5

Prize: One downloadable copy of Komodo IDE
Most Web pages with forms have inputs that need to satisfy certain rules that need to be validated.

Usually the form presentation output is defined separately from the rules that need to be validated.

This class provides an alternative approach that allows to define the form output template and the validation rules in the same place.

Manuel Lemos
Name: Jonas Earendel <contact>
Classes: 2 packages by
Country: Sweden Sweden
Age: 43
All time rank: 189318 in Sweden Sweden
Week rank: 9 Up1 in Sweden Sweden Up
Innovation award
Innovation award
Nominee: 1x

 Unique User Downloads Download Rankings  
This week:0
All time:2,874
This week:636Up
User Ratings User Comments (1)
 All time
Good job.
5 years ago (JYO)