html quickform usage tips and tricks
I am using html quickforms. I want to do have 2 forms like
<form1>
</form>
<form2>
</f开发者_StackOverfloworm>
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 ?
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.
精彩评论