-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.php
More file actions
73 lines (65 loc) · 2.23 KB
/
log.php
File metadata and controls
73 lines (65 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - StoryLense</title>
<link rel="icon" href="images/logo.png" type="image/png" />
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="log.css">
</head>
<body>
<!-- Header -->
<header>
<div class="header-content">
<img src="images/logo.jpg" alt="StoryLense Logo" class="logo">
</div>
</header>
<!-- Login Section -->
<main class="login-main">
<div class="login-box">
<h2>Login</h2>
<!-- 🔥 Display error messages -->
<?php if (isset($_GET['error'])): ?>
<p style="color:#ff8080; margin-bottom: 15px;">
<?php
if ($_GET['error'] === 'empty') {
echo "Please fill in all fields.";
}
elseif ($_GET['error'] === 'invalid') {
echo "Incorrect email or password.";
}
elseif ($_GET['error'] === 'not_logged_in') {
echo "You must be logged in to access that page.";
}
?>
</p>
<?php endif; ?>
<!-- Login Form -->
<form class="login-form" action="login_process.php" method="POST">
<input type="email" name="email" placeholder="Email Address" required>
<input type="password" name="password" placeholder="Password" required>
<!-- ✔ Correct submit button -->
<button type="submit">Login</button>
</form>
<div class="signup-link">
Don't have an account? <a href="sign.php">Sign up</a>
</div>
</div>
</main>
<!-- Footer -->
<footer>
<div class="footer-content">
<div class="vision-title">OUR VISION</div>
<div class="vision-text">
At StoryLense, we make rating movies simple, engaging, and accessible for everyone
</div>
<div class="copyright">© StoryLense. All rights reserved.</div>
<div class="social-icons">
<img src="images/x-logo.png" alt="X" class="social-icon">
<img src="images/instagram-logo.png" alt="Instagram" class="social-icon">
</div>
</div>
</footer>
</body>
</html>