-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.html
67 lines (57 loc) · 2.18 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
<!DOCTYPE html>
<html>
<head>
<title>SIGN UP PAGE
</title>
<link rel="stylesheet" type="text/css" href="signup.css">
<script type="text/javascript">
// Get the modal
var modal = document.getElementById('id01');
var email = document.getElementById("ed");
var password = document.getElementById("pass");
function submission()
{
if(email.value.trim()==""||password.value.trim()=="")
{
alert("All fields are mandatory")
return false;
}
else{
alert("you have successfully signed up");
return true;
}
}
// When the user clicks anywhere outside of the modal, close it
</script>
</head>
<body>
<form onsubmit="return submission()" action="website1.html" >
<div class="container">
<h1>Sign Up</h1>
<p>Please fill in this form to create an account.</p>
<label for="FIRST NAME" ><b>FIRST NAME</b></label>
<div class="first name">
<input id="ed" type="TEXT" placeholder="Enter Your Name" name="NAME" required>
</div><br>
<label for="LAST NAME"><b>LAST NAME</b></label>
<div class="last name">
<input id="ed" type="TEXT" placeholder="Enter Your Last name" name="NAME" required>
</div><br>
<label for="email"><b>Email</b></label>
<div class="email">
<input id="ed" type="TEXT" placeholder="Enter Email" name="email" required>
</div><br>
<label for="password"><b>Password</b></label>
<input id="pass" type="password" placeholder="Enter Password" name="password" required>
<label for="psw-repeat"><b>Repeat Password</b></label>
<input type="password" placeholder="Repeat Password" name="psw-repeat" required>
<p>By creating an account you agree to our <a href="terms.html" style="color:dodgerblue" target="_blank">Terms & Privacy</a>.</p>
<div class="clearfix">
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
<button onclick="submission()" type="submit" class="signupbtn">Sign Up</button>
</div>
</div>
</form>
</div>
</body>
</html>