This commit is contained in:
2019-07-04 13:14:30 +02:00
parent 9844a0f453
commit 026ca6bd32

View File

@@ -8,13 +8,15 @@ $db = new Database();
$question = $db->getQuestion($id); $question = $db->getQuestion($id);
$sol = $question['solution']; $sol = $question['solution'];
$qu = $question['question'];
echo <<<END echo <<<END
<h1>Frage bearbeiten</h1><form action="questions-update.php" method="post"> <h1>Frage bearbeiten</h1><form action="questions-update.php" method="post">
<input type="hidden" name="id" value="$id"> <input type="hidden" name="id" value="$id">
<label for="question">Frage:</label> <br> <label for="question">Frage:</label> <br>
<textarea name="question" id="question">"$question['question']"</textarea> <br><br> <textarea name="question" id="question">$qu</textarea> <br><br>
<label for="answer0">Antwort 0:</label> <label for="answer0">Antwort 0:</label>
<div class="form-box"> <div class="form-box">
END; END;