This class can be used to generate HTML forms, based on table schema automaically deterimend from a database table. The HTML can be customised.
It retrieves the list of fields of a given MySQL database table. Then it generates HTML forms for entering values of records of that table.
The table primary key field can be automatically omitted from the output.
The generated forms may be populated with default values when the forms are generated in edit mode.
An XML configuration file can be used to define how to map the table fields into form inputs. The configuration file can also be used to add, remove or customise form sections.
The generated forms can be returned as a string or saved to a file.