This commit is contained in:
2019-07-28 19:04:30 +02:00
parent 63975ad6a2
commit 4e2eb9b618
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
<body> <body>
<form action="walthorz.php" method="POST"> <form action="walthorz.php" method="POST">
<label for="zahl">Gebe deine Lieblingszahl ein</label> <label for="zahl">Gebe deine Lieblingszahl ein</label>
<input type="number" id="zahl"></input> <input type="number" id="zahl" value="zahl"></input>
<input type="submit">Let's go!</input> <input type="submit">Let's go!</input>
</form> </form>
</body> </body>

View File

@@ -1,6 +1,6 @@
<?php <?php
$val = $_REQUEST['zahl']; $val = $_POST['zahl'];
if ($val == "420") { if ($val == "420") {
header("Location: waltermode2.html"); header("Location: waltermode2.html");