-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
60 lines (47 loc) · 1.54 KB
/
admin.php
File metadata and controls
60 lines (47 loc) · 1.54 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
<?php
// Include the server-side logic or configuration (e.g., database connection, session handling)
include('server.php');
?>
<!DOCTYPE html>
<html lang="en">
<?php
// Include the header file (typically contains meta tags, stylesheets, or navigation)
include('header.php');
?>
<body>
<!-- Page Title -->
<h4>Welcome to Free-Gigs, the Free Concert Website</h4>
<div class="wrapper">
<header>
<!-- Navigation link to homepage -->
<h3><a href="index.php">Home</a></h3>
</header>
<section>
<h4>Admin Login</h4>
<div class="form_settings">
<!-- Login form for admin users -->
<form id="login-form" class="form" action="admin.php" method="post">
<?php
// Include any error messages (e.g., failed login, validation errors)
include('errors.php');
?>
<!-- Username field -->
<p>
<span>Username</span><br>
<input class="contact" type="text" name="username" value="" />
</p>
<!-- Password field -->
<p>
<span>Password</span><br>
<input class="contact" type="password" name="password" id="typepass" value="" />
</p>
<!-- Submit button -->
<p style="padding-top: 15px">
<span> </span>
<input class="submit" type="submit" name="login_admin" value="Submit" />
</p>
</form>
</div>
</section>
<footer>
<!-- Dis