Re: [DataObject FB] set Quickforms $trackSubmit to TRUE
| From: | Alexander Petri | Date: | Fri, 05 Nov 2004 14:42:58 +0000 |
| Subject: | Re: [DataObject FB] set Quickforms $trackSubmit to TRUE | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15350@lists.php.net to get a copy of this message | ||
it would be great to intergrate that into FB
why not set it to default??
75% of my pages with form(s) have more than one form on one page
but thanks anyway
"Justin Patrin" <papercrane@gmail.com> schrieb im Newsbeitrag
news:432beae0411041113e806249@mail.gmail.com...
> 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--