2024-09-17 12:26:29 +00:00
|
|
|
<form action="/auftakt/" method="POST">
|
2024-10-12 10:07:41 +00:00
|
|
|
<h1>Was ist 2·3</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'];
|
2024-10-12 10:07:41 +00:00
|
|
|
if ($number === '6') {
|
2024-09-17 12:26:29 +00:00
|
|
|
echo "richtig";
|
|
|
|
} else {
|
|
|
|
echo "falsch";
|
|
|
|
}
|
|
|
|
}
|