-
Notifications
You must be signed in to change notification settings - Fork 9
/
sign-up.html
71 lines (64 loc) · 2.51 KB
/
sign-up.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign-up Page</title>
<link href="sign-up.css" rel="stylesheet">
</head>
<script>
function validate() {
var u, e, c, p, cp;
u = document.getElementById('username_signup_id').value;
e = document.getElementById('email_signup_id').value;
c = document.getElementById('contact_signup_id').value;
p = document.getElementById('pass-signup_id').value;
cp = document.getElementById('cpass_signup_id').value;
if (isNaN(c)) {
alert("Please enter a valid number");
return false;
}
else if (p == cp) {
return true;
}
else {
return false;
}
}
</script>
<body>
<img class="bg" src="https://d1e00ek4ebabms.cloudfront.net/production/f0726d17-6b8d-4042-b343-34a7bd5e61e9.jpg" alt="bus">
<div class="contain">
<center>
<h1>
<u>Sign-Up Form</u>
</h1>
<form autocomplete="off" action="sign-up.php" method="post" onsubmit="return validate()">
<div class="container_signup">
<div class="inputclass">
username: <input type="text" name="usrnam_name" id="username_signup_id" required>
</div>
<div class="inputclass">
email: <input type="email" name="mail_name" id="email_signup_id" required>
</div>
<div class="inputclass">
contact no.: <input type="text" name="contct_name" id="contact_signup_id" maxlength="10" minlength="10"
required>
</div>
<div class="inputclass">
password: <input type="password" name="pass_name" id="pass-signup_id" required>
</div>
<div class="inputclass">
confirm password: <input type="password" name="cpass_name" id="cpass_signup_id" required>
</div>
</div>
<br><br>
<div class="btnn">
<input class="btn_signup" type="submit" value="SUBMIT">
</div>
</form>
</center>
</div>
</body>
</html>