[eluser]obiron2[/eluser]
Build an array that contains all of the form fields
If necessary, populate the array with values from your database (or model), otherwise set the value to NULL
Populate your initial form with the values from the array
When the $_POST comes back in, you can compare the fields in it to the original array (not all form fields will get returned in the $_POST - e.g. unchecked checkboxes) and this is the easiest way I have found to validate the form.
You can then extend the concept to build a generic form handling process that takes the array, populates the form, validates, represents if there are errors or updates the database if all is OK.
Obiron