2024-09-17 12:26:29 +00:00
|
|
|
<form action="/auftakt/" method="POST">
|
|
|
|
<h1>Was ist 7 X 8</h1>
|
|
|
|
<label>Deine Antwort:
|
|
|
|
<input type="number" placeholder="nummer" name="number" required>
|
|
|
|
</label>
|
2024-09-17 12:03:09 +00:00
|
|
|
<button type="submit">Abgeben</button>
|
2024-09-17 12:26:29 +00:00
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($_POST['number'])) {
|
|
|
|
$number = $_POST['number'];
|
|
|
|
if ($number === '56') {
|
|
|
|
echo "richtig";
|
|
|
|
} else {
|
|
|
|
echo "falsch";
|
|
|
|
}
|
|
|
|
}
|