Zitat Zitat von Arvan Beitrag anzeigen
Ich habe das mal versucht, aber da gab es irgend ne komische Warnung im Quelltext:

HTML-Code:
<form target="_blank" action="http://eu.wowarmory.com/character-sheet.xml" accept-charset="UTF-8">

<big>Realm:</big><br>

<?php
setcookie('r', $_POST['r']);
?> 

<select size="1" style="width: 235px; height: 20px" name="$_COOKIES['r']">


<optgroup label="Deutsch">
    <option value="Aegwynn">Aegwynn</option>
    <option value="Alexstrasza">Alexstrasza</option>
    <option value="Alleria">Alleria</option>
    <option value="Aman'Thul">Aman'Thul</option>
    <option selected value="Ambossar">Ambossar</option>
    <option value="Anetheron">Anetheron</option>
EDIT: Hoppla, ich glaube durch "option selected" is das klar, oder?^^ hatte aber noch keine zeit das auszuprobieren.
Du musst eigentlich nur noch eine Abfrage in jede <option> einbauen:
PHP-Code:
<option value="Ambossar" <?php if($_COOKIES['r'] == "Ambossar") { "selected" }?> >Ambossar</option>