Although, this is not a what you requested. Anyway, How about take a look at
PEAR. You can find in PHP source or you might have them already in your system.
I think it is useful and also a good example.
You might want to use form classes can be found on net, since form elements
definition and
I would like to write an entire Work Flow (or form flow) system using PHP,
complete with database (read, writes and inserts) and email. The form will
flow starting with the originator through a series of approval processes to
the end.
Are there any samples out there that would point me in the rig