evachick156
New member
I have the following list box:
echo("<Select size=3 MULTIPLE >");
echo("<option value='t1' " . selectMatch("t1",$teach_list[0]) . " >Simple</option>");
echo("<option value='t2' " . selectMatch("t2",$teach_list[1]) . " >Statements</option>");
echo("<option value='t3' " . selectMatch("t3",$teach_list[2]) . " >References</option>");
selectMatch returns a string which is "SELECTED". Now all three of these options are supposed to be selected...but only the first one gets selected....why?
echo("<Select size=3 MULTIPLE >");
echo("<option value='t1' " . selectMatch("t1",$teach_list[0]) . " >Simple</option>");
echo("<option value='t2' " . selectMatch("t2",$teach_list[1]) . " >Statements</option>");
echo("<option value='t3' " . selectMatch("t3",$teach_list[2]) . " >References</option>");
selectMatch returns a string which is "SELECTED". Now all three of these options are supposed to be selected...but only the first one gets selected....why?