I'm trying to be lazier - like using some handy PHP function that might say
three_letter_month($i) - where $i is the 2-digit number.
Just wondering if one of the date functions will do this.
But I came up with this (crude but effective) option:
$j = 2492000;
echo "<select name=\"whatever\">";
for ($i=1; $i <= 12; $i++) {
echo "<option value=\"" . sprintf("%02d", $i) . "\"";
echo ">" . date("M", $j) . "</option>";
$j=$j+2592000;
}
echo "</select>";
which gives me a popup menu with the twelve months in it, and transmits 01-12. The $j variable adds 30 days each time through the loop, so as long as the initial value for $j is somewhere in January it seems to work.