Hacker
Hacker

Reputation: 7906

html quickform usage tips and tricks

I am using html quickforms. I want to do have 2 forms like

<form1>
</form>

<form2>
</form>

2 forms in single page. how do i do this in a page using quickforms.

i use code like this to create form.

$form1 =& new HTML_QuickForm('form_filter', 'POST', '', '', array('class' => 'PSDDForm1'));

can i use a single renderer to print both forms ?

Upvotes: 1

Views: 246

Answers (1)

cweiske
cweiske

Reputation: 31078

First, use HTML_QuickForm2. Version 1 is deprecated.

To answer your question: just make sure that they have different names/ids, and it will work without problems. Yes, you can use the same renderer to render multiple forms.

Upvotes: 1

Related Questions