2024-09-17 12:26:29 +00:00
|
|
|
<form action="/auftakt/" method="POST">
|
2024-09-17 12:28:44 +00:00
|
|
|
<h1>Was ist 7·8</h1>
|
2024-09-17 12:26:29 +00:00
|
|
|
<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";
|
|
|
|
}
|
|
|
|
}
|