This class can be used to generate general purpose HTML form pages to edit database data.
It generates HTML for displaying forms in a table with several types of basic form inputs on each table row like: text, hidden, file, checkbox, textarea, select, password.
The class may also display more complex inputs, some specific for applications in Brazil, such as dates, tax numbers (CPF), zip codes (CEP), education degree, gender, weekly work journey, marriage status, work shift, handicap status and federal state.
The class may also display table rows with static information with titles, warnings, etc...
Some types of fields may be defined with information taken from database query results.
This package can be used to validate submitted form values according to rules.
The is a base class that can take a definition of validation rules and error messages and checks submitted form values to determine wether the submitted values satisfy the validation rules.
Currently the base class supports validating value text length, date format, non-empty passwords, e-mail addresses, numbers, URLs and IP addresses.
There is also a sub-class that provides support for additional rules for validating types of values used in Brazil like CEP, CPF, CNPJ, phone numbers, dates and user names.