====== HTML_QuickForm_SubForm ======
HTML_QuickForm_SubForm is an [[http://pear.php.net/package/HTML_QuickForm|HTML_QuickForm]] element I wrote to allow making one form an element in another form, effectively making it a sub-form. All elements are put into the form with their original names and all rules put on the sub-form will be called when the main form is validated. In other words, create your sub-form as normal, embed it into the main form, and use your main form as usual.
You can see an example [[http://pear.reversefold.com/SubFormTest.php|here]].
Syntax highlighted code is [[http://pear.reversefold.com/SubForm.phps|here]].
A plaintext version is [[http://pear.reversefold.com/SubForm.php.txt|here]].
====== Future Development ======
I may look into adding a prefix / postfix feature like FormBuilder’s but the problem is that getting and altering QF’s elements is a little hairy.