Autoform is a project mainly written in ..., it's free.
PHP script to build an HTML form from a MySQL table schema