Login Page
alert('Incorrect username or password. Please try again.');";
}
}
// Check if the user clicked the Signup button
if (isset($_POST['signup'])) {
// Retrieve signup form data
$fullname = $_POST['fullname'];
$email = $_POST['email'];
$password = $_POST['signup_password'];
// You can add code here to store the user data in your database
// For demonstration, let's just print the data
echo "";
}
// Check if the user clicked the Logout button
if (isset($_POST['logout'])) {
// Unset the session variable
unset($_SESSION['username']);
// Redirect to the login page
header('Location: login_page.php');
exit();
}
?>