Can anyone recommend a good class library for working with forms in PHP?
Specifically, here's what I'm after:
Scripting pages to retrieve one or more records from a database, display them to the user as an editable HTML form, and update the database records upon submission of the form is a very routine (and tedious) task.
You have to consider the vagaries of different HTML form control types, the different ways that the same data is expressed in different contexts (e.g., boolean values are "" or "on" in the $_POST array, 0 or 1 in SQL queries, and obnoxious as PHP variables; similar things can be said about nulls), and whether the record currently being displayed to the user came out of the database, or is being redisplayed from a prior form post. It's all very fiddly and repetitive.
I want something that will abstract away as much of this as possible, without imposing unnecessary restrictions on the way I can build my forms. Is there anything out there, or do I have to write my own?