I'm using the code below to auto fill the option values for a drop-down. I'm have trying getting it to have the number 30 selected. Right now it's displaying the number 30 twice out of sequence. how would I get that sequence to display 18-75 with 30 pre-selected.
<select name="age2" class="numb">
<?php
for ($k = 18; $k <= 75; $k++)
echo '<option value='.sprintf("%02d", $k).'>'.sprintf("%02d", $k).'</option>';
echo '<option value=30 selected>30</option>';
?>
</select>