PHP-Code:
<?
if ($_POST['month'])
{
$mon = $_POST['month'];
} else {
$mon = date('n');
}
?>
<select name="month">
<option value="6" <?=$mon==6 ? ' selected="selected"' : ''?>>Juni</option>
<option value="7" <?=$mon==7 ? ' selected="selected"' : ''?>>Juli</option>
</select>
Kommentar