-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.html
101 lines (68 loc) · 2.65 KB
/
signup.html
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
<html>
<head>
<title>Signup</title>
<link rel="stylesheet" type="text/css" href="login.css">
</head>
<body>
<div class="loginbox">
<h1>
<center> Signup/ Register </center>
</h1>
<form action="Register.php" method="POST" onSubmit="return checkPassword(this)">
<div class = "col-12 col-md-6 col-xl-4 text-center box-Login absolute-center-box">
<div class="login-link text-left">
<a href="./loginpage.html">login</a>
<a href="./signup.html" class = "active">signup</a>
</div>
<div class = "form-group-3">
<label for="username">Email:</label>
<input class= form-control id=username type="text" name="user" placeholder="user" required autofocus>
</div>
<div class = "form-group-3">
<label for="password">Password:</label>
<input class ="form-control" id="password" type="password" name="pass" placeholder="password" required autofocus>
<input type="checkbox" onclick="passwordshow()"> show
</div>
<script>
function passwordshow() {
var x = document.getElementById("password");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
<div class="form-control-3">
<label for="verifypass">Verify Password:</label>
<input class = "form-control" id=verifypass type="password" name="verifypass" placeholder = "verify psssword" required autofocus>
<div>
<input class="login" type="submit" name="submit" value ="Signup">
</form>
<div>
</body>
<script>
// Function to check Whether both passwords
// is same or not.
function checkPassword(form) {
password1 = form.password.value;
password2 = form.verifypass.value;
// If password not entered
if (password1 == '')
alert ("Please enter Password");
// If confirm password not entered
else if (password2 == '')
alert ("Please enter confirm password");
// If Not same return False.
else if (password1 != password2) {
alert ("\nPassword did not match: Please try again...")
return false;
}
// If same return True.
else{
alert("Password Match!")
return true;
}
}
</script>
</html>