Re: HTML_quickform setdefaults question

From: Date: Sun, 10 Dec 2006 18:55:57 +0000
Subject: Re: HTML_quickform setdefaults question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26060@lists.php.net to get a copy of this message
rav k wrote: > Does anyone know if I can use 2 different setDefaults for my form? ie. Use > setDefault1 to fill in one part of my form and setDefault2 for another part? > I have to do this because I'm getting different bits of info from different > tables... Can someone please advise? Please ask your questions only once. There are two simple solutions for your problem: - call setDefaults() twice; first with the data for some of the fields, then with the data for some other fields - merge the arrays with the data for all fields and pass this array to setDefaults() Regards, Mark

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