Re: [Phplib-users] ooh Form Selectfield selected ?
Brought to you by:
nhruby,
richardarcher
|
From: Marko K. <M.K...@os...> - 2003-03-27 13:24:36
|
Hi,
look here:
$o = array(array('label'=>'Please Select a Fruit','value'=>0),
array('label'=>'Apple','value'=>1),
array('label'=>'Orange','value'=>2),
array('label'=>'Pear','value'=>3),
array('label'=>'Grape','value'=>4));
$f->add_element(array('type'=>'select',
'name'=>'menu',
'options'=>$o,
'size'=>3,
'valid_e'=>'Please select a fruit',
'value'=>1));
This will select the 'Apple'!!!
Marko
|