[eluser]eggshape[/eluser]
hi metalapimenye,
your code might have a bug on line 5:
Code:
$year_arr[] .= $year_present
do you mean to push the new $year_present into the array? if you're going to use $year_arr as the options array, like Armchair said, you need to pass an associative array:
Code:
$year_arr[$year_present] = $year_present
which will give you this options list in html:
Code:
<options value="2007">2007</options>
<options value="2006">2006</options>
...