-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalert.php
More file actions
53 lines (52 loc) · 1.1 KB
/
alert.php
File metadata and controls
53 lines (52 loc) · 1.1 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
<?php
session_start();
$alert = isset($_SESSION['alert']) ? $_SESSION['alert'] : 'No alert message found.';
unset($_SESSION['alert']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Alert</title>
<style>
body {
background: #0f2027;
color: white;
font-family: Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
text-align: center;
}
.message-box {
background: rgba(255,255,255,0.1);
padding: 40px;
border-radius: 15px;
box-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.message-box p {
font-size: 20px;
}
.message-box a {
display: inline-block;
margin-top: 20px;
padding: 10px 20px;
color: white;
background: #6366f1;
text-decoration: none;
border-radius: 8px;
}
.message-box a:hover {
background: #8b5cf6;
}
</style>
</head>
<body>
<div class="message-box">
<p><?= htmlspecialchars($alert) ?></p>
<a href="index.php">Go Back</a>
</div>
</body>
</html>