itskp-odense/Frontend/home.php

20 lines
540 B
PHP

<?php require "../Backend/controller/accessControl.php"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home</title>
</head>
<body>
<p>Logget in som <?php echo $_SESSION['name'];?></p>
<a href="../Backend/controller/logout.php">Log ud</a>
<hr>
<form action="../Backend/controller/upload.php" method="POST">
<input type="text" name="title">
<input type="text" name="description">
<input type="submit" name="createPost" placeholder="Opret">
</form>
</body>
</html>