I have a select box which have more than 750 option value.Actually it is hardcoded in the HTML page.I need it to insert a separate table and using foreach to populate it.Please let me know is it possible?

```
<select name="PassNum"> 
<option value="12HTQD" <?php if($PassDetail['Mak']=="12HTQD"){?> selected="selected"<?php } ?> >12HTQD</option>
<option value="12HTMD" <?php if($PassDetail['Mak']=="12HTMD"){?>  selected="selected"<?php } ?> >12HTMD</option>
<option value="78HTMD" <?php if($PassDetail['Mak']=="78HTMD"){?>  selected="selected"<?php } ?> >78HTMD</option>

---------------------------------------
---------------------------------------
 </select>

```

It is too much time consuming if i do it manually.

**UPDATE**

I want the hardcoded values from the given HTML to DB..So i can populate it from DB..Now its hardcoded..

Thanks in advance.