diff --git a/index.php b/index.php index 26e159d..ef003bf 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ require_once 'config.php'; // Check if user is logged in if (!isset($_SESSION['user_id'])) { - include 'pages/login.html'; + include 'login.php'; } else { // Fetch user details $user_id = $_SESSION['user_id']; diff --git a/login.php b/login.php index 0ac06fe..12067ff 100644 --- a/login.php +++ b/login.php @@ -28,4 +28,5 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { // Close the statement $stmt->close(); } +include "pages/login.html"; ?> diff --git a/pages/login.html b/pages/login.html index 1efd63c..a17d508 100644 --- a/pages/login.html +++ b/pages/login.html @@ -12,8 +12,7 @@