Login   Register  
PHP Classes
elePHPant
Icontem

validaForms: Validate web forms using localized error messages

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (8 years ago) RSS 2.0 feedStarStarStarStar 66%Total: 2,630 This week: 1All time: 1,331 This week: 1,393Down
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
Age: 37
All time rank: 93366 in Brazil Brazil
Week rank: 1051 Down80 in Brazil Brazil Down

  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,630All time:1,331
 This week:1This week:1,393Down
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:79%StarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:416