Re: setDefaults question

From: Date: Tue, 29 Jul 2003 11:00:30 +0000
Subject: Re: setDefaults question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6889@lists.php.net to get a copy of this message
Christopher Utley wrote in php.pear.general: > In the following example, I have a text field named "slug" that displays the default value "blah" as it should, but field "93" does not. > > $this->defaultFormValues['slug'] = 'blah'; > $this->defaultFormValues['93'] = '129'; Don't know if that helps, but you should use $form->setDefaults(array(93 =>129)); http://pear.php.net/manual/en/package.html.html-quickform.html- quickform.setdefaults.php ThS. -- http://4bconsult.de

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