Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php
session_start();
var_dump($_POST);
if (isset($_POST['username']) && isset($_POST['password'])) {
if ($_POST['username'] == 'JorisandCo' && $_POST['password'] == 'LostInSpace_202022') {
$_SESSION['session_id'] = session_id();
$_SESSION['username'] = $_POST['username'];
header('Location: admin.php');
} else {
echo "wrong username or password";
}
} else {
echo "fill in the form";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>admin</title>
</head>
<body>
<form method="post">
<input type="text" name="username" placeholder="username">
<input type="password" name="password" placeholder="password">
<input type="submit" value="login">
</form>
</body>
</html>