Witschi262
Blogger
Hallo,
ich möchte ein kleines Quiz erstellen.
Mein HTML sieht so aus:
Wie Prüfe ich allerdings, ob jetzt die besagte Variable exestiert? Also, ich brauche das ja speziell für Value, da ja name öfters exestiert.
Weil
Geht nicht.
ich möchte ein kleines Quiz erstellen.
Mein HTML sieht so aus:
HTML:
<form action="quiz_2.php" method="post">
<b>Was ist eine Frucht?</b> <br>
<input type="radio" name="antwort" value="right_1"> Erdbeere <br>
<input type="radio" name="antwort" value="wrong_1"> Nuss <br>
<input type="radio" name="antwort" value="wrong_2" > Melone <br> <br>
<b>Was ist eine Frucht?</b> <br>
<input type="radio" name="antwort2" value="right_2"> Erdbeere <br>
<input type="radio" name="antwort2" value="wrong_3"> Nuss <br>
<input type="radio" name="antwort2" value="wrong_4" > Melone <br> <br>
<b>Was ist eine Frucht?</b> <br>
<input type="radio" name="antwort3" value="right_3"> Erdbeere <br>
<input type="radio" name="antwort3" value="wrong_5"> Nuss <br>
<input type="radio" name="antwort3" value="wrong_6" > Melone <br> <br>
<input type="submit" value="Weiter">
</form>
Wie Prüfe ich allerdings, ob jetzt die besagte Variable exestiert? Also, ich brauche das ja speziell für Value, da ja name öfters exestiert.
Weil
PHP:
if (isset($_POST['wrong_1']))