Quickform Select Element usage...
| From: | Bobber | Date: | Wed, 17 Dec 2003 22:20:58 +0000 |
| Subject: | Quickform Select Element usage... | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9630@lists.php.net to get a copy of this message | ||
I have added a select element to my form like this:
$form->addElement('select', 'nickname', 'Is this a nickname?',
array(1 => 'Yes', 0 => 'No') );
How do I specify the 'No' element as the default selected element?