You are here:
Form validator class
Validator Class is a PHP object that can be used to validate the presence of HTML form data.
By "validating", the function simply checks if a variable is NOT NULL. The class is intended to be called AFTER the end-user has submitted an HTML form.
The class is first initiated, then the validate_fields function is called by passing the field names of all the required form fields. If any of the variables (field names) are NULL the function returns FALSE, along with an error message of which fields are null. If all the variables are NOT NULL, the function returns TRUE.
Script Info:
Form validator class from Form Processors Scripts.http://dave.imarc.net/php/#form
|
||||||||
|
« Back to Form Processors
Comments
Only registered users can post comments!
