ade234uk wrote:Thats how you do it. Thank you very much for your help. I will keep this for later reference 🙂
Actually, that's what I just thought up when I read your question. Usually I do it this way (which possibly might process a bit faster):
foreach(array(1=>'Januaray','February','March','April','May','June','July',
'August','September','October','November','December') as $num => $name)
{
echo "<option value='$num'>$name</option>\n";
}
But that's not as cool. 🙂