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
$ProductSupplyer_select->addOption($values[$i],$options[$i]);
How doo I set the selected value?
if ($selected[$i]==1){
$selected= "selected"
}
$ProductSupplyer_select->addOption($values[$i],$options[$i],$selected);
$selected="";
can somone help me out here?