-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.php
80 lines (73 loc) · 2.95 KB
/
registration.php
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
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration - Al Hikma Islamic Academy</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
<nav>
<div class="navbar">
<div class="logo"><a href="index.html">Al-Hikma Islamic Academy</a></div>
<ul class="menu">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="courses.html">Courses</a></li>
<li><a href="registration.php">Registation</a></li>
</ul>
</div>
</nav>
<section class="registration">
<div class="registration-section">
<div class="contact-form">
<h2>Quick Registration</h2>
<div id="error-message" class="error-message">
<?php
// Display error message for duplicate registration
if (isset($_GET['error']) && $_GET['error'] === 'duplicate') {
echo "<p style='color: red;'>User already registered!</p>";
}
?>
</div>
<section class="registration-form">
<form action="process_registration.php" method="POST">
<label for="name">Full Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="whatsapp">WhatsApp Number:</label>
<input type="text" id="whatsapp" name="whatsapp" required>
<label for="country">Recent Country:</label>
<input type="text" id="country" name="country" required>
<button type="submit" class="btn">Submit</button>
</form>
</section>
</div>
</div>
</section>
<section class="contact-info">
<div class="contact-info-container">
<h2>Get in Touch</h2>
<p>WhatsApp or Call</p>
<ul>
<li>Phone: +252 672127951</li>
<li>Skype/Email</li>
<li>[email protected]</li>
</ul>
</div>
</section>
<footer>
<div class="footer-content">
<p>COPYRIGHT © 2024 Al-hikma Islamic Academy ALL RIGHTS RESERVED</p>
<div class="social-icons">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
</div>
</div>
</footer>
</body>
</html>