Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php
session_start();
$admin_username = "admin";
$admin_password = "password";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$username = $_POST['username'];
$password = $_POST['password'];
if ($username === $admin_username && $password === $admin_password) {
$_SESSION['admin'] = true;
header("Location: admin_dashboard.php");
exit;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Pizzaknaller | Admin</title>
</head>
<body>
<form action="adminlogin.php" method="POST" class="adminForm">
<h1>Please Login</h1>
<label for="username">username</label>
<input type="text" name="username" id="adminUsername" required>
<label for="password">password</label>
<input type="password" name="password" id="adminPassword" required>
<input type="submit" value="Login">
</form>
</body>
</html>