Re: QuickForm & Set Defaults onBlur

From: Date: Wed, 11 Aug 2004 07:30:36 +0000
Subject: Re: QuickForm & Set Defaults onBlur
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14064@lists.php.net to get a copy of this message
On Wed, 11 Aug 2004 04:07:03 -0300, Jacques <iacques@yahoo.com.br> wrote: > Hi people, > > I have a quickform that have a text called user_id, user_name and user_fone. > When I type a id number, in the textfield, and after I press tab (onBlur > of user_id), for go to next textfield (id_name), i like to return the > user_name and user_fone from DB_DataObject, if it exists. I have to > submit the form and get(id) to setDefaults? > Submit the form, the get the dataobject and use $form->setDefaults($do->toArray()); I think.... Or you could use DB_DataObject_FormBuilder. ;-) > How make this? > > Thanks! > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > !DSPAM:4119c357210079983599257! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.pear.general (#14064) next »