add initial auftakt files
This commit is contained in:
commit
29aa8a9615
5 changed files with 37 additions and 0 deletions
5
auftakt/index.php
Normal file
5
auftakt/index.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<form action="http://localhost:8080/auftakt/submit.php" method="POST">
|
||||
<h1>yo. what's 9+10</h1>
|
||||
<input type="number" value="0" placeholder="nummer" name="number">
|
||||
<button type="submit">Abgeben</button>
|
||||
</form>
|
9
auftakt/submit.php
Normal file
9
auftakt/submit.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
$number = $_POST['number'];
|
||||
|
||||
if ($number === '21') {
|
||||
echo "richtig";
|
||||
} else {
|
||||
echo "falsch";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue