This commit is contained in:
2019-07-28 19:07:15 +02:00
parent 9fe830dd99
commit ea589a8d62
2 changed files with 3 additions and 4 deletions

View File

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

View File

@@ -1,12 +1,11 @@
<?php
$val = $_REQUEST['zahl'];
echo($val);
if ($val == "420") {
//header("Location: waltermode2.html");
header("Location: waltermode2.html");
} else {
//header("Location: waltermode.html");
header("Location: waltermode.html");
}
?>