So jetzt, aber :rolleyes:
PHP-Code:
<?php
if(isset($_POST['realm'])) {
setcookie('realm', $_POST['realm'], time() + 2592000);
}
?><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<big>Realm:</big><br>
<select size="1" style="width: 235px; height: 20px" name="realm">
<optgroup label="Deutsch">
<option value="Aegwynn" <?php if($_REQUEST['realm'] == "Aegwynn") { echo 'selected="selected"'; }?> >Aegwynn</option>
<option value="Alexstrasza" <?php if($_REQUEST['realm'] == "Alexstrasza") { echo 'selected="selected"'; }?> >Alexstrasza</option>
<option value="Alleria" <?php if($_REQUEST['realm'] == "Alleria") { echo 'selected="selected"'; }?> >Alleria</option>
</optgroup>
</select>
<input type="submit" value="Abschicken">
</form>