codeweek/auftakt/index.php
2024-09-17 14:28:44 +02:00

18 lines
396 B
PHP

<form action="/auftakt/" method="POST">
<h1>Was ist 7·8</h1>
<label>Deine Antwort:
<input type="number" placeholder="nummer" name="number" required>
</label>
<button type="submit">Abgeben</button>
</form>
<?php
if (isset($_POST['number'])) {
$number = $_POST['number'];
if ($number === '56') {
echo "richtig";
} else {
echo "falsch";
}
}