Login   Register  
PHP Classes
elePHPant
Icontem

jForm Validator: Validate forms with rules defined in form template

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Jonas Earendel
Name: Jonas Earendel <contact>
Classes: 1 package by
Country: Sweden Sweden
Age: 39
All time rank: 190318 in Sweden Sweden
Week rank: 747 Up5 in Sweden Sweden Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of Jonas Earendel  >  jForm Validator  >  Download Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: jForm Validator
Base name: jform-validation
Description: Validate forms with rules defined in form template
Version: 1.4.2
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 1209 users
All time rank: 2894
Week users: 2 users
Week rank: 845 Up
 
  Groups   Rate classes User ratings   Dependencies  
  Applications   Related pages   Files Files  

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Validation Validation algorithms View top rated classes


  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

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (91%) Good (91%) - Good (91%) - - Sufficient (64%) 556
Month: Not yet rated by the users

  Packages needed by this class  
Class DownloadWhy it is needed Dependency
credit card validation Download .zip .tar.gz Enables the "creditcard" input type Conditional

  Applications that use this package  
TangoNuevo
A small site where I use the class
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
My blog about the class
Here I explain the usage a bit more thoroughly
SecurImage
If you want to add captcha, download this package and extract it in the same folder as class.jForm.php

  Files folder image Files  
File Role Description
Plain text file class.is.php Class A class that validates simple values
Plain text file class.jForm.php Class The Base Validator Class
Accessible without login Plain text file example_big.php Example A big example
Accessible without login Plain text file example_small.php Example A small example
Accessible without login Plain text file example_w_jquery.php Example A small example with jQuery
Accessible without login Plain text file is.js Data Validates simple values
Accessible without login Plain text file jform.css Data Css for pretty icons
Accessible without login Plain text file jquery.validate.js Data A JavaScript/jQuery validator class
Accessible without login Plain text file jquery.validate.translations.fr-FR.js Data French jQuery error messages
Accessible without login Plain text file jquery.validate.translations.sv-SE.js Data Swedish jQuery error messages
Accessible without login Plain text file lang.en-GB.php Conf. English error messages
Accessible without login Plain text file lang.fr-FR.php Conf. French error messages
Accessible without login Plain text file lang.sv-SE.php Conf. Swedish error messages
Accessible without login Image file validator.png Icon The icons for required, ok and errors

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