
Good people, I seek to write a generic, reusable set of functions that, given a GET/POST array, a table name and a few other instructions, can retrieve data from a form and save it in one or more tables. Anyone know of anything similar which I can build upon? If there is one thing I find totally boring, its processing form data. Oh yeah, ideas on how to do this are also welcome, below are my initial ideas: ---- Parameters to be received by function: 1. Associative array with name of form element and corresponding name of table column 2. Name of table, to be used to construct the INSERT statement 3. A flag to instruct the function to return the last_insert_id() for those cases where you need it for the next save To be returned by the function 1. The last_insert_id() if specified 2. A boolean value indicating if the saving was successful or not Anything else I am missing?