swapnali_s230 Posted April 20, 2012 Share Posted April 20, 2012 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? <?php @$today = getdate();@$month=$today[mon];@$year=$today[year];@$num=0; $semester=array("Spring", "Summer I", "Summer II", "Summer", "Fall"); while($num<=5) {$sem= $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;" > <?=$sem?></select></div></td></tr> If I echo $sem, it will print it. But if I try to echo it in select box, it is not showing output...... Thanks in advance Quote Link to comment Share on other sites More sharing options...
requinix Posted April 20, 2012 Share Posted April 20, 2012 Where are the s? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.