PHP Form Development Best Practices
Posted on 2009-04-21
I'm looking for advice on Best Practices in form design for PHP. Do most people hand code each form that they build to interact with their database?
I have written my own object code to handle the display of the form, the CRUD and the validation. I am currently considering extending the functionality so that the parameters for each form and each control are stored in a database - and I'm wondering if that's normal, or if there is a better way to do it. Would it be advisable to use a framework?
My motivation is that I want administrators of my webapp to be able to choose an "Edit this list" option from any <select> which will pop up a modal form of the table for that <select> so that they can make additions/deletions and changes and I feel that the best way to manage that is by having the form created at runtime by pulling the parameters for the form from the database.
P.S. I expect that I will split points if I receive good advice from multiple experts :-)