Hi all
I am working on php-html program. I have following code which gives output, I want it in select box. But it is not showing select box. I dont know why?
If I echo $sem, it will print it. But if I try to echo it in select box, it is not showing output......PHP Code:<?php
@$today = getdate();@$month=$today[mon];@$year=$today[year];@$num=0;
$semester=array("Spring", "Summer I", "Summer II", "Summer", "Fall");
while($num<=5)
{[B]$sem[/B]= $semester[$num]." ".$year; $num=$num+1;}
?>
<td><div id="Gen_Combo"><select id ="Gen_Combo1" name ="combo_gen[]" size="4" style="width: 100px; font-size: 10px;" >
<?=[B]$sem[/B]?></select></div></td></tr>
Thanks in advance


Reply With Quote
Bookmarks