the required values are not appearing in a select drop down
code
what I want to end up with is a drop down select starting at the number set by $std and finishing with the number set by $dmth...where am I going wrong please?PHP Code:<td width="56%"><form name="form3" method="post" action="">
<?php
for($i = $std; $i <= $dmth; $i++){
$opts = array($i);
$value = $i;
$name = $i;//print_r($i);
}
echo "<select name='select3'>";
foreach($opts as $opt){
$selected = "SELECTED";
}
echo "<option value='" .$opt["value"] . "' $selected>";
echo $opt["name"];
echo "</option>";
echo "</select>";?>
</form></td>





Bookmarks