Formation - Form Manager - v2.0
Formation is a lightweight class that can build all necessary elements for a form, process the posted data (post, get, request), validate the data based on a schema and finally return a cleaned result. Has logic for error handling and applying a class to invalid fields. Additionally, all validator functions are static and can be used externally. Class Features: * Create a form and all its field elements * Manage all labels and fields with the correct IDs and associations * Determines to correct tags for HTML or XHTML * Supports all input types: text, textarea, password, hidden, file, radio, checkbox, select, image * Has a large library of validators: alpha, numeric, date, time, ip, email, url, and many more * Validates certain elements based on the supplied schema * Cleans all data after a successfull validation * Can set certain fields as required or optional