1
when looping threw options for a select box like this;
Lets say I have three arrays.
$values[$i]
$options[$i]
$selected[$i] => 0 not selected 1 selected
le="color: #000000"><?php $ProductSupplyer_select->addOption($values[$i],$options[$i]);
How doo I set the selected value?
le="color: #000000"><?php if ($selected[$i]==1){ $selected= "selected" } $ProductSupplyer_select->addOption($values[$i],$options[$i],$selected); $selected="";
can somone help me out here?