I'm praying there's a function somewhere out there that:
generates a html form based on the fields of a particular table within a DB (namely mySQL)
generates the appropriate form input based on the fields type or notes (ie. for field: avatar_img, it knows to generate a file input)
uses the POST method to submit
generates and submits SQL insert query to database
In addition to that, a similar function that generates a form that allows the editing of records.
It doesn't take too long to write these each time myself, but if there's a function that you provide the formname, database driver, table name, whether your form is to insert or edit, that would be quite nifty i think.
ie. generateForm(addUser, mySQL, tUsers, insert)
Seen any such thing?
Many thanks.