Re: [DataObject FB] set Quickforms $trackSubmit to TRUE
| From: | Justin Patrin | Date: | Fri, 05 Nov 2004 17:08:03 +0000 |
| Subject: | Re: [DataObject FB] set Quickforms $trackSubmit to TRUE | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15356@lists.php.net to get a copy of this message | ||
On Fri, 5 Nov 2004 15:42:58 +0100, Alexander Petri <alex.petri@gmx.de> wrote:
> it would be great to intergrate that into FB
> why not set it to default??
>
Are there any adverse side-effects? I don't see any myself. Markus,
Norbert, others that use FB, what do you think? Should we add this?
> 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--
>
--
paperCrane --Justin Patrin--