PHP Classes

validaForms: Validate web forms using localized error messages

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 2,659 All time: 1,438 This week: 660Up
Version License Categories
validaforms 1.0BSD LicenseLocalization, Validation


This class is meant to validate the input values of Web forms.

It supports several types of input validation returning localized error messages according to the idiom that was chosen. The localized text is defined in separate files for each of the supported idioms. Currently, the error messages are available in English, Portuguese, Italian and German.

Currently it supports the following validation types:

- Numeric, alphanumeric, letters only, required, minimum and maximum length
- Date
- E-mail
- Password
- Checkbox
- Dropdown select field
- Radio button field

The class also has some interesting features like associating a text input with a select input. It is useful when you must receive an input text set to an alternative value besides those available in the select input that has a special value for specifying "other" using the text field.

A similar feature is available for radio fields that may be associated with a text field that has to be set by the user when the radio button is checked.

Picture of Erick Vavretchek
Name: Erick Vavretchek <contact>
Classes: 2 packages by
Country: Brazil Brazil
Age: 47
All time rank: 101372 in Brazil Brazil
Week rank: 234 Up16 in Brazil Brazil Up

  Files folder image Files  
File Role Description
Files folder imagedocs (2 files)
Files folder imagelangs (4 files)
Plain text file test_validaForms.php Example Just an example of using validaForms
Plain text file validaForms.class.php Class validaForms Class

  Files folder image Files  /  docs  
File Role Description
  HTML file validaForms_DOC.html Doc. Documentation in HTML
  Plain text file validaForms_DOC.txt Doc. Documentation in TXT

  Files folder image Files  /  langs  
File Role Description
  Plain text file english.lang.php Conf. File that contains the error messages in english
  Accessible without login Plain text file german.lang.php Conf. File that contains the error messages in german
  Plain text file italian.lang.php Conf. File that contains the error messages in italian
  Plain text file portugues.lang.php Conf. File that contains the error messages in portugues language

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,438
This week:660Up
 User Ratings  
 All time