SELECT-POPULATOR.PHP

I find that when developing input forms, adding select tags is one of the most tedious tasks. This is especially true if they have to remember the values assigned to them. Realizing this, I wrote this function to facilitate things. Here is an example:

<select name="name"
onclick="document.form_name.submit();">
<?
$test = array(
array("1", "one"), array("2", "two"), array("3", "three"),
array("4", "four"), array("5", "five"));

select_populator($test, "3");
?>
</select>