Blog for November 2005
12/11/2005: Reusable Form Functions
Like me, you are probably confronted with many requests for surveys, questionnaires, feedback forms, registration forms and so forth: forms where the processing requirements are very simple (store in a database or e-mail to a particular address).
Despite the simple requirements, there is often quite a lot of work involved: crafting a database to store results, writing a function to store the data to the database, one to verify submitted data (e.g. make sure that if you’ve asked for an e-mail address, it contains an @-sign), and marking up the form itself (which can be quite a task if you want to make correct use of <label>, <th scope="blah">, etc.
So I introduce my reusable form functions, with the rather unglamorous name of inc_surveytool.php v1.0.
They are far from finished (expect a 1.1 and a 2.0 version…