-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
56 lines (47 loc) · 2.49 KB
/
signup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100 flex justify-center items-center min-h-screen">
<div class="w-full max-w-md p-8 bg-white rounded-lg shadow-lg">
<h2 class="text-2xl font-bold text-center mb-6">Register</h2>
<!-- Registration Form -->
<form action="./includes/signup.inc.php" method="POST">
<!-- hidden input -->
<input type="hidden" name="action" value="signup">
<!-- Full Name -->
<div class="mb-4">
<label for="username" class="block text-sm font-semibold text-gray-700">Username</label>
<input type="text" id="full-name" name="username" required class="w-full mt-2 p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400">
</div>
<!-- Email -->
<div class="mb-4">
<label for="email" class="block text-sm font-semibold text-gray-700">Email</label>
<input type="email" id="email" name="email" required class="w-full mt-2 p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400">
</div>
<!-- Password -->
<div class="mb-4">
<label for="password" class="block text-sm font-semibold text-gray-700">Password</label>
<input type="password" id="password" name="password" required class="w-full mt-2 p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400">
</div>
<!-- Confirm Password -->
<div class="mb-4">
<label for="confirm-password" class="block text-sm font-semibold text-gray-700">Confirm Password</label>
<input type="password" id="confirm-password" name="confirm-password" required class="w-full mt-2 p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400">
</div>
<!-- Submit Button -->
<div class="mb-4">
<button type="submit" class="w-full py-3 bg-blue-600 text-white font-semibold rounded-md hover:bg-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-400">Register</button>
</div>
<!-- Login Link -->
<div class="text-center">
<p class="text-sm text-gray-600">Already have an account? <a href="./login.php" class="text-blue-600 hover:underline">Login</a></p>
</div>
</form>
</div>
</body>
</html>