l105/11.5/pag2.php
<!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>
<form method='get' action ='pag3.php'>
<div>
<?php
$voornaam = $_GET['voornaam'];
$achternaam = $_GET['achternaam'];
echo "<input type='hidden' name='voornaam' id='voornaam' value='$voornaam'>";
echo "<input type='hidden' name='achternaam' id='voornaam' value='$achternaam'>";
?>
<label for="woonplaats">Woonplaats</label>
<input type="text" name="woonplaats" id="woonplaats">
</div>
<div>
<label for="leeftijd">Leeftijd</label>
<input type="text" name="leeftijd" id="leeftijd">
</div>
<div><input type='submit' valuea='Aanmelden'></div>
</form>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse