title: PHP form option selected
body: <p>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. </p>
  
  <pre><code>&lt;select name="age2" class="numb"&gt;
  &lt;?php 
  for ($k = 18; $k &lt;= 75; $k++) 
  echo '&lt;option value='.sprintf("%02d", $k).'&gt;'.sprintf("%02d", $k).'&lt;/option&gt;'; 
  echo '&lt;option value=30 selected&gt;30&lt;/option&gt;';
  ?&gt;
  &lt;/select&gt;
  </code></pre>