Re: [DataObject FB] set Quickforms $trackSubmit to TRUE
| From: | Justin Patrin | Date: | Thu, 04 Nov 2004 19:13:42 +0000 |
| Subject: | Re: [DataObject FB] set Quickforms $trackSubmit to TRUE | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15340@lists.php.net to get a copy of this message | ||
On Thu, 4 Nov 2004 14:55:09 +0100, Alexander Petri <alex.petri@gmx.de> wrote:
> How can i set $tracksubmit = true
> in DataObjects Formbuilder
>
> so i can have more than one Form on one page
> i.e. a search form...
>
This should work:
$do = DB_DataObject::factory('table');
$formBuilder = DB_DataObject_FormBuilder::create($do);
$form = new HTML_QuickForm('name', 'post', '', '_self',
null, true);
$formBuilder->useForm($form);
$form =& $formBuilder->getForm();
If this is sufficiently wanted, we could add an option to FB, but FB
is a bit option heavy already...
--
paperCrane --Justin Patrin--