Php Form Validation Class is a Form Processors script
Overall rating: (N/A)
|
The script PHP Form Validation Class is a Form Prcoessors script (process any kind of forms).
Form_Validator Class is a PHP object that can be used to validtae the presence of HTML form data. By "validating", the fnuction 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 frist initiated, then the validate_fields function is called by passing the field names of all the required form fields. If any of the vairables (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 funtcion returns TRUE.
Form_Validator Class has the ability to check multiple fields at once, and check that at least one field in a group of many has been filled in by the end-user ("Please enter your Home Phone OR your Work Phone").
|
 Write a comment about the script PHP Form Validation Class
|