PHP Classes

File: validation_class.php

Recommend this page to a friend!
  Classes of Olaf Lederer   Validate Fields Class   validation_class.php  
File: validation_class.php
Role: Class source
Content type: text/plain
Description: the (main) class source
Class: Validate Fields Class
Perform common types of form field validation
Author: By
Last change: version 1.33 - The regular expression pattern of the check for html code wasn't good, It's working now. The example page is modified to test general text inside a textarea (usefull to test the html code check). There are also spanish translations for the messages now, thank you Mark for doing this job.

version 1.34 - A small improvement in the method create_msg() makes it possible to switch between the xhml version and the simple html version. In the fields array one key was named "name", it's renamed to "value" to make it more clear. I removed the variable declarations at the begin of the method validation (thank you Mike Carter for pointing me on this). Because the value of a checkbox (radio) type field is only available if the element is checked there are new functions to validate this elements.
Date: 18 years ago
Size: 15,178 bytes

You need to be a registered user and login to get this file.

1,615,206 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on: