-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistration.html
More file actions
129 lines (116 loc) · 3.69 KB
/
Copy pathregistration.html
File metadata and controls
129 lines (116 loc) · 3.69 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
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
<!DOCTYPE html>
<html>
<head>
<title>User Registration</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
.container {
width: 400px;
margin: 100px auto;
background-color: #fff;
padding: 20px;
border-radius: 30px; /* Increased rounded corners */
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
h2 {
text-align: center;
}
.form-group {
margin-bottom: 15px;
border-radius: 10px; /* Increased rounded corners */
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
input[type="password"] {
width: 90%;
padding: 8px;
border-radius: 10px; /* Increased rounded corners */
border: 1px solid #ccc;
}
.btn-submit {
background-color: #000080;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 10px; /* Increased rounded corners */
cursor: pointer;
display: block;
margin: 0 auto;
}
.btn-submit:hover {
background-color: #1976D2;
}
.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
padding: 20px;
border: 1px solid #ccc;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
z-index: 9999;
}
.text-center {
text-align: center;
}
.small-text {
font-size: 9px;
}
.small-text a {
text-decoration: none;
color: #000080;
}
</style>
</head>
<body>
<div class="container">
<h2>User Registration</h2>
<form action="registration.php" method="post">
<div class="form-group">
<label for="txt_uname">Username:</label>
<input type="text" id="txt_uname" name="txt_uname" required>
</div>
<div class="form-group">
<label for="txt_email">Email:</label>
<input type="email" id="txt_email" name="txt_email" required>
</div>
<div class="form-group">
<label for="txt_pwd">Password:</label>
<input type="password" id="txt_pwd" name="txt_pwd" required>
</div>
<div class="form-group">
<label for="txt_confirm_pwd">Confirm Password:</label>
<input type="password" id="txt_confirm_pwd" name="txt_confirm_pwd" required>
</div>
<div class="form-group">
<input type="submit" value="Register" class="btn-submit">
</div>
<div class="text-center mt-3 small-text">
<p>Already have an account? <a href="loginhtml.html">Click here</a></p>
</div>
</form>
</div>
<div class="popup" id="errorPopup">
<p id="popupMessage"></p>
</div>
<script>
function showErrorPopup(message) {
var popup = document.getElementById("errorPopup");
var popupMessage = document.getElementById("popupMessage");
popupMessage.innerText = message;
popup.style.display = "block";
}
</script>
</body>
</html>