l102/11.4/11.4.pagina2.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>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$schrijver = $_POST["schrijver"];
?>
<p><strong>Naam Schrijver:</strong> <?php echo $schrijver; ?></p>
<form action="11.4.pagina3.php" method="post">
<input type="hidden" name="schrijver" value="<?php echo $schrijver; ?>">
<label for="boek1">Boek 1:</label>
<input type="text" id="boek1" name="boek1" required>
<br>
<label for="boek2">Boek 2:</label>
<input type="text" id="boek2" name="boek2" required>
<br>
<input type="submit" value="Volgende">
</form>
<?php
}
else {
echo "<p>Geen gegevens ontvangen.</p>";
}
?>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse