Editor: It is quite essential to have input validations in the server side form processing script. Having the right set of validations Prevent bad data entering your database. Form validations can, to some extend, prevent hacking attacks too. The PHP form validation script contains a set of commonly required form validations. Using this script, it is quick and easy to add form validations to your PHP form processor. Save yourself from repetitive coding of common form validations. Documentation and code samples are included in the download.It is very essential to have the input to your form validated before taking the form submission data for further processing. When there are many fields in the form, the PHP validation script becomes too complex. Moreover, since you are doing the same or Similar validation for most of the forms that you make, just too much of duplicate effort is spent on form validations.
About this generic PHP form validation script
The generic PHP form validator makes it very easy to add validations to your form.
We create and associate a set of "validation descriptors" with each element in the form. The "validation descriptor" is a String specifying the type of validation to be performed. For example, "req" means required, "alpha" means allow only alphabetic characters and so on.
Each field in the form can have 0, 1, or more validations. For example, the input should not be empty, should be less than 25 Chars, should be alpha-numeric, etc