This package can be used to validate forms on the browser and on the server side.
It takes a list of form inputs and validation rules and can validate submitted form values.
The class can also generate Javascript to validate the forms on the browser side before submitting the form to the server.
Currently it supports validating form fields as valid e-mail address, with values included or excluded from a given array, with value equal to another field, set to a non-empty value, matching a regular expression, as a valid number, and matching a given length range. |