-
Notifications
You must be signed in to change notification settings - Fork 0
/
Registration.jsp
70 lines (67 loc) · 2.42 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
<!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>PETIFY.COM</title>
<link rel="stylesheet" href="css/style2.css">
</head>
<body>
<input type="hidden" id="status" value="<%= request.getAttribute("status") %>">
<div>
<p id="head">PETIFY WORLD</p>
</div>
<div class="container">
<form method="post" action="register">
<fieldset class="apj">
<h1><b> SIGN UP<b></h1>
<div class="form-group">
<input type="text" name="name" placeholder="Enter your Name" required="required">
</div>
<div class="form-group">
<input type="text" name="email" placeholder="Enter Email" required="required">
</div>
<div class="form-group">
<input type="password" name="pass" placeholder="Enter Password" required="required">
</div>
<div class="form-group">
<input type="password" name="re_pass" placeholder="Enter Password Again" required="required">
</div>
<div class="form-group">
<input type="text" name="contact" placeholder="Enter Mobile Number" required="required">
</div>
<input type="submit" class="button" value="Register" />
</fieldset>
</form>
</div>
<!-- JS -->
<script src="vendor/jquery/jquery.min.js"></script>
<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("Congrats","Account Created Succesfull","success");
}else if(status == "invalidname"){
swal("Oops","Enter Your Name","error");
}
else if(status == "invalidemail"){
swal("Oops","Enter Your Email","error");
}
else if(status == "invalidpassword"){
swal("Oops","Enter Your Password","error");
}
else if(status == "invalidconfirmpassword"){
swal("Oops","Enter Your Correct Password","error");
}
else if(status == "invalidmobilenumber"){
swal("Oops","Enter Your Mobile Number","error");
}
else if(status == "invalidmobilelength"){
swal("Oops","Mobile Number should be of 10 digit","error");
}
</script>
</body>
</html>