Norbert Mocsnik has some thoughts on form building/processing. Check it out, see what you think.
I have some ideas of my own, and I'll post them either as updates to this post or as a separate entry.
Are you stuck with a legacy PHP application? You should buy my book because it gives you a step-by-step guide to improving your codebase, all while keeping it running the whole time.