Google
Edit File: login.php
<?php session_start(); if(isset($_SESSION['admin'])){ header("Location: dashboard.php"); exit; } ?> <!DOCTYPE html> <html> <head> <title>Admin Login</title> <style> body{ font-family:Arial; background:#f4f6f9; } .login-box{ width:350px; margin:120px auto; padding:30px; background:white; box-shadow:0 0 10px #ccc; } input{ width:100%; padding:10px; margin:10px 0; } button{ width:100%; padding:10px; background:#2ecc71; border:none; color:white; } </style> </head> <body> <div class="login-box"> <h2>Admin Login</h2> <form action="authenticate" method="POST"> <input type="email" name="email" placeholder="Email" required> <input type="password" name="password" placeholder="Password" required> <button>Login</button> </form> </div> </body> </html>