Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php
include_once 'classes/database.php';
session_start();
if (!isset($_SESSION['loggedIn']) || $_SESSION['loggedIn'] !== true) {
header('Location: login.php');
exit;
}
database::updateUser();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Edit gebruiker</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="hulptext">Met deze pagina kan een gebruiker worden gewijzigd, direct daarna stuurt deze je terug naar de <span class="bold">index.php</span> pagina.
<div class="container">
<h1>Edit gebruiker <?=$_SESSION['username']?></h1>
<form method="POST" action="edit.php">
<input type="hidden" name="userId" value="<?php echo isset($_GET['userId']) ? htmlspecialchars($_GET['userId']) : ''; ?>">
<label for="postcode">Postcode:</label>
<input type="text" id="postcode" name="postcode" required>
<label for="huisnummer">Huisnummer:</label>
<input type="text" id="huisnummer" name="huisnummer" required>
<label for="woonplaats">Woonplaats:</label>
<input type="text" id="woonplaats" name="woonplaats" required>
<input type="submit" name="Wijzig" value="Wijzig">
</form>
</div>
</body>
</html>