Something
public text v1 · immutableecho "\n\n<select name=\"monthSelect\">\n";
for ($month=1; $month <= 12; $month++) {
if ($month == $dbMonth) { $selectFlag = 'SELECTED'; } else { $selectFlag = ''; }
echo "<option $selectFlag value=\"$month\">$month</option>\n";
}
echo "</select>\n\n";