-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
148 lines (116 loc) · 5.76 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Register</title>
<link rel="stylesheet" href="signup.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="info@cosmoscollege.edu.np">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Jost:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://unpkg.com/boxicons@latest/css/boxicons.min.css">
<script src="home.js" defer></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('signup-form').addEventListener('submit', function(event) {
var password = document.getElementById('Password').value;
var confirmPassword = document.getElementById('cpword').value;
if (password.length < 3 || !/[A-Z]/.test(password) || !/\d/.test(password) || !/[!@#$%^&*]/.test(password)) {
event.preventDefault();
alert('Password must be at least 3 characters long and contain at least one uppercase letter, one number, and one special character');
} else if (password !== confirmPassword) {
event.preventDefault();
alert('Passwords do not match');
}
});
});
</script>
</head>
<body>
<header>
<a href="index.php" class="logo"><img src="image/logo/logo.png" alt=""></a>
<ul class="navmenu">
<li><a href="index.php">Home</a></li>
<div class="dropdown">
<li><a href="#">Shop</a></li>
<div class="dropdown-content">
<a href="products.php?div_id=image2">Electronics Devices</a>
<a href="products.php?div_id=image1">Clothes and Shoes</a>
<a href="products.php?div_id=image3">Home and Decor</a>
</div>
</div>
<li><a href="About.php">About</a></li>
</ul>
<div class="nav-icon">
<a href="#"><i class='bx bx-search'></i></a>
<a href="#"><i class='bx bx-user'></i></a>
<a href="cart.php"><i class='bx bx-cart'></i></a>
<div class="bx bx-menu" id="menu-icon"></div>
</div>
</header>
<div class="container">
<h2>REGISTER HERE</h2>
<form action="signup_process.php" method="post" id="signup-form">
<div class="input-name">
<i class='bx bxs-user lock'></i>
<input type="text" name="MyfName" id="fname" placeholder="First Name" class="name" required>
<span>
<i class='bx bxs-user lock'></i>
<input type="text" name="MylName" id="lname" placeholder="Last Name" class="name" required>
</span>
</div>
<div class="input-name">
<i class='bx bx-phone lock'></i>
<input type="tel" name="Mynumber" id="number" placeholder="Phone Number" class="text-name" required>
</div>
<div class="input-name">
<i class='bx bxs-home lock'></i>
<input type="text" name="Myaddress" id="address" placeholder="Address" class="text-name" required>
</div>
<div class="input-name">
<input type="text" name="Mycity" id="city" placeholder="District" class="num-name" required>
</div>
<div class="input-name">
<input type="text" name="Mypcode" id="pcode" placeholder="Postal Code" class="num-name" required>
</div>
<div class="input-name">
<i class='bx bxs-envelope email'></i>
<input type="email" name="MyEmail" id="email" required placeholder="eg: myname@gmail.com" class="text-name">
</div>
<div class="input-name">
<i class='bx bxs-user-circle lock'></i>
<input type="text" name="MyuName" id="uname" placeholder="Username" class="text-name" required>
</div>
<div class="input-name">
<i class='bx bxs-lock-alt lock'></i>
<input type="password" name="Mypword" id="Password" placeholder="Password" class="text-name" required>
</div>
<div class="input-name">
<i class='bx bxs-lock-alt lock'></i>
<input type="password" name="Mycpword" id="cpword" placeholder="Confirm Password" class="text-name" required>
</div>
<div class="input-name">
<input type="submit" value="Sign Up" name="signup" />
<input type="reset" value="Reset" />
</div>
</form>
</div>
<div class="footer">
<div class="Ftext">
<h1>Conatct</h1>
<p>Cosmos College</p>
<p>Tutepani, Lalitpur</p>
<a href="mailto:info@cosmoscollege.edu.np">info@cosmoscollege.edu.np</a>
</div>
<div class="Ftext">
<h3>Links</h3>
<p> <a href="index.php">Home</a></p>
<p> <a href="login.php">Login</a></p>
<p><a href="signup.php">Register</a></p>
<p><a href="About.php">About</a></p>
</div>
</div>
</body>
</html>