Element Select and selected value : how to declare it ?
| From: | Mos | Date: | Tue, 26 Oct 2004 15:07:44 +0000 |
| Subject: | Element Select and selected value : how to declare it ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15119@lists.php.net to get a copy of this message | ||
Hi everybody !
I put the following code in an QuickForm HTML form:
$form->addElement('select', 'online', 'Status : ',
array("0"=>"Choose","1"=>"All","2"=>"Published","3"=>"Unpublished"),
array
('onchange' => "javascript:this.form.submit();") );
I would know how to set a selected value ?
Does anybody can help me ?
Mos