PHP Classes
elePHPant
Icontem

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 This week: 1All time: 2,871 This week: 616Up
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: 1 package by
Country: Sweden Sweden
Age: 42
All time rank: 192918 in Sweden Sweden
Week rank: 503 Up4 in Sweden Sweden Up
Innovation award
Innovation award
Nominee: 1x

 Unique User Downloads Download Rankings  
 
Total:1,309
This week:1
All time:2,871
This week:616Up
User Ratings User Comments (1)
 All time
Utility:93%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1659
 
Good job.
5 years ago (JYO)
70%StarStarStarStar