Need to change a list box to drop down
I have the following:
$f_age= FormCombo('display', array('f_age'=>$_REQUEST[f_age]), "f_age", array('extra_html'=>"class='fix' ", 'assoc_values'=>$ages, 'multiple'=>'true'));
$f_sub= FormCombo('display', array('f_sub'=>$_REQUEST[f_sub]), "f_sub", array('extra_html'=>"class='fix' ", 'assoc_values'=>$subjects, 'multiple'=>'true'));
$submit=fm_su('submit', "value='Search' AccessKey='S'");
$hid=fm_hi('_filter', "value=1");
$ret="
<form method='post'>
Age Group (Hold control to select multiple or unselect): <br>
$f_age <br>
Subjects (Hold control to select multiple or unselect): <br>
$f_sub <br>
$hid
$submit
</form>
But I need it to be a drop down box where the user can only choose one item. Not sure how to change the code.
Alin
July 5, 2008, 2:08 am
Re:
It looks like the html code for the dropdown is somewhere else. Here you display the form using some function defined in your file. But you could try replacing the 'multiple'=>'true' with 'multiple'=>'false' in your lines.