Hello,
I've recently started using formbuilder in conjunction with HTML Template to
make templated forms. I've come across a situation I'm not quite sure how to
handle.
I'm trying to have one template file (let's say example.tmpl) and that
template file may or may not include other templated files (shouldn't be
relevent for this question).
So here's the deal. I'd like to have multiple forms on the page output by
example.tmpl but I'm not quite sure the best way to do that with formbuilder.
HTML Template only has <tmpl_var form-start> and doesn't seem to allow any
way to distinguish forms (e.g. a name="formname" attribute).
Now it appears I could template out a header, than create a new form instance
for each form and close it with a footer template. That's a bit awkward and
would also break formbuilders javascript validation (since the <script> tags
couldn't be included in <head></head>). There's got to be a better way to do
it than that.
Many sites have a login area on one form and a poll on another form all in the
same page (i.e. www.slashdot.org) so it is a pretty common situation. I just
can't seem to figure out the formbuilder/HTML Template way of handling it.
Thanks.
Todd
|