Phormation is a set of PHP functions which provide a framework for developing any HTML form connected to a database backend (currently PostgreSQL, MySQL, and ODBC are supported). It allows you to write and make use of reusable widgets so you can develop Web sites more quickly. Phormation has more than 10 widgets including text field, date, file upload, and foreign key select, and is easily extensible. It has good documentation.