<?php

echo <<<END
<link rel="stylesheet" href="style.css">
<h1>Frage hinzufügen</h1>

<form action="questions-store.php" method="post">

    <label for="question">Frage:</label> <br>
    <textarea name="question" id="question" required></textarea> <br><br>

    <label for="answer0">Antwort 0:</label> <br>
    <div class="form-box">
        <input class="form-solution" type="radio" name="solution" value="0" required>
        <input class="form-answer" type="text" name="answer0" id="answer0" required>
    </div>

    <label for="answer1">Antwort 1:</label> <br>
    <div class="form-box">
        <input class="form-solution" type="radio" name="solution" value="1" required>
        <input class="form-answer" type="text" name="answer1" id="answer1" required>
    </div>

    <label for="answer2">Antwort 2:</label> <br>
    <div class="form-box">
        <input class="form-solution" type="radio" name="solution" value="2" required>
        <input class="form-answer" type="text" name="answer2" id="answer2" required>
    </div>


    <button>Frage speichern</button>

</form>
END;

?>
