-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.jsp
99 lines (93 loc) · 3.62 KB
/
registration.jsp
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="Free cabs everywhere">
<meta name="keywords" content="Online Cab Booking System">
<meta name="author" content="Haks">
<meta http-equiv="refresh" content="15">
<link rel="icon" type="image/png" href="ind-img/logo.png">
<title>Cabs Up</title>
<link rel="stylesheet"
href="fonts/material-icon/css/material-design-iconic-font.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<input type="hidden" id="status" value="<%= request.getAttribute("status") %>">
<div class="main">
<section class="signup">
<div class="container">
<div class="signup-content">
<div class="signup-form">
<h2 class="form-title">Sign up</h2>
<form method="post" action="Register" class="register-form"
id="register-form">
<div class="form-group">
<label for="name"><i
class="zmdi zmdi-account material-icons-name"></i></label> <input
type="text" name="name" id="name" placeholder="Your Name" required="required"/>
</div>
<div class="form-group">
<label for="email"><i class="zmdi zmdi-email"></i></label> <input
type="email" name="email" id="email" placeholder="Your Email" required="required"/>
</div>
<div class="form-group">
<label for="pass"><i class="zmdi zmdi-lock"></i></label> <input
type="password" name="pass" id="pass" placeholder="Password" required="required"/>
</div>
<div class="form-group">
<label for="re-pass"><i class="zmdi zmdi-lock-outline"></i></label>
<input type="password" name="re_pass" id="re_pass"
placeholder="Repeat your password" required="required"/>
</div>
<div class="form-group">
<label for="contact"><i class="zmdi zmdi-lock-outline"></i></label>
<input type="number" name="contact" id="contact" placeholder="Contact no" required="required"/>
</div>
<div class="form-group">
<input type="checkbox" name="agree-term" id="agree-term"
class="agree-term" required="required"/> <label for="agree-term"
class="label-agree-term"><span><span></span></span>I
agree all statements in <a href="#" class="term-service">Terms
of service</a></label>
</div>
<div class="form-group form-button">
<input type="submit" name="signup" id="signup"
class="form-submit" value="Register" />
</div>
</form>
</div>
<div class="signup-image">
<figure>
<img src="images/signup-image.jpg" alt="sing up image">
</figure>
<a href="login.jsp" class="signup-image-link">I am already
member</a>
</div>
</div>
</div>
</section>
</div>
<!-- JS -->
<script src="js/main.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="alert/dist/sweetalert.css">
<script type="text/javascript">
var status= document.getElementById("status").value;
if(status == "success"){
swal("Yayyyyyyy","account created","success");
}
else if(status== "invalidR"){
swal("Oeoeoeoe","What man plz follow procedure","error");
}
else if(status== "mobEr"){
swal("Oeoeoeoe","Enter 10 digit valid number","error");
}
else if(status== "RepassEr"){
swal("Oeoeoeoe","Password dosen't match.","error");
}
</script>
</body>
</html>