HTML: Text Box Validation
Ashish Vishwakarma (contact me)
This class can be used to generate Web forms with Javascript based client side validation.
It can generate the HTML tags for starting and ending forms with one or more text or password fields.
Additionally it can generate a Javascript function named validate that should be embedded in the form page so it can be called when the form is submited to validate the form.
If there are any empty fields, the validate function opens an alert window to tell the user which field needs to be filled.
Click here for detailed information about this class on phpclasses.org