PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2006-01-03 (10 years ago) RSS 2.0 feedStarStarStarStar 68%Total: 2,644 All time: 1,393 This week: 1,042Up
Version License Categories
validaforms 1.0BSD LicenseLocalization, Validation
Description Author

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

  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  
 0%
Total:2,644
This week:0
All time:1,393
This week:1,042Up
 User Ratings  
 
 All time
Utility:85%StarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:85%StarStarStarStarStar
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:472