Zitat von Xardas der Dunkle
So jetzt, aber
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>
...
Ich weiß ja nich, das du da zusammengereiht hast, aber mein quelltext isses ganz gewiss nicht mehr...
Was soll "<form action="<?php echo $_SERVER['PHP_SELF']; ?>" ???
und warum ist "r" jetzt auf einmal "realm"...
Fakt ist, das es immer noch nich geht, leider auch nicht von Manni, ich habe kein Plan mehr was ich falsch mache... ich habe diesen <?php Block direkt am Anfang der Datei, scheint trotzdem nichts zu wirken!
Hier ist der PHP-Block
PHP-Code:
<?php if(isset( $_POST [ 'r' ])) { setcookie ( 'r' , $_POST [ 'r' ], time () + 2592000 ); } ?>
Sowie der Form-Teil:
HTML-Code:
<form name="ArsenalCharSuche" target="_blank" action="http://eu.wowarmory.com/character-sheet.xml" accept-charset="UTF-8" method="post" >
<big> Realm:</big> <br>
<select size="1" style="width: 235px; height: 20px" name="r" >
<optgroup label="Deutsch" >
<option value="Aegwynn" <?php if($_REQUEST['r'] == "Aegwynn") { echo 'selected="selected"'; }?> >Aegwynn</option>
<option value="Alexstrasza" <?php if($_REQUEST['r'] == "Alexstrasza") { echo 'selected="selected"'; }?> >Alexstrasza</option>
<option value="Alleria" <?php if($_REQUEST['r'] == "Alleria") { echo 'selected="selected"'; }?> >Alleria</option>
</optgroup>
</select>
<br>
<big> Name:</big> <br>
<input type="text" size="35" name="n" >
<br> <br>
<input type="submit" value="Suchen" >
<input type="reset" value="Zurü cksetzen" >
</form>
DIe Seite um die es übrigens geht (wo ich immer uploade) http://www.bastilampe.de/wow/beta/