l114/h11/11.3.php
<?php
$naam = $_POST['naam'];
$wachtwacht = $_POST['wachtwacht'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
function showform() {
echo '<form method="post">';
echo 'vul je gebruikersnaam in: <input type="text" name = "naam"> <br>';
echo 'vul je wachtwoord in: <input type="text" name = "wachtwacht"> <br>';
echo '<input type="submit" value="inloggen">';
echo '</form>';
}
showform();
?>
<?php echo " Je gebruikersnaam is $naam, en je wachtwoord is $wachtwacht"?>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse