-
Notifications
You must be signed in to change notification settings - Fork 1
/
signup.html
47 lines (39 loc) · 1.31 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
<!DOCTYPE html>
<html>
<head>
<title>BEARS</title>
<link rel="stylesheet" href="styles/main.css">
<script>
function validateForm() {
var x = document.forms["signup"]["pass"].value;
var y = document.forms["signup"]["pass2"].value;
if (x == y) {
return true;
}
else {
alert("Passwords must match!");
return false;
}
}
</script>
</head>
<body>
<nav class="bigbluefish">
<div>
<a id="name">BEARS</a>
<a id="signup" href="login.html">Login</a>
</div>
</nav>
<div class="signup bigbluefish">
<h1>Sign Up</h1>
<form onsubmit="return validateForm()" name="signup" action="/addusers" method="POST">
<input class="text" id="user" type="text" placeholder="Username" name="user" required><br>
<input class="text" id="pass" type="password" placeholder="Password" name="pass" required><br>
<input class="text" id="pass2" type="password" placeholder="Comfirm Password" name="pass2" required><br>
<form action="/">
<a id="submit" href="/"><input id="submit" type="submit"></a>
</form>
</form>
</div>
</body>
</html>