-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate-account.html
88 lines (68 loc) · 2.54 KB
/
create-account.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Create Account page</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"><link rel="stylesheet" href="/static/ca.css">
<script language="javascript">
function show()
{
var uname = document.getElementById("name").value;
var pwd = document.getElementById("pwd").value;
var email = document.getElementById("email").value;
var no = document.getElementById("no").value;
if(uname==''){
alert("username-missing")
return false;
}
else if(pwd.length==''||pwd.length < 6)
{
alert("Password min length is 6.");
return false;
}
else if(email=='')
{
alert("Email is missing");
return false;
}
else if(no=='')
{
alert("Mobile No is missing");
return false;
}
return true;
}
</script>
</head>
<body>
<div style="text-align: center;background-image:linear-gradient(135deg, #d8ca0b 10%, #1904E5 100%);">
<h1 style="font-size: 500%;">Signup</h1>
<div >
<!-- <a href="/static/i3.html">Login</a> -->
{%- for category, message in get_flashed_messages(with_categories = true) %}
<div class = "alert alert-danger">
<p style="color: rgb(235, 17, 17);font-size:larger;">{{ message }}</p>
</div>
{%- endfor %}
<br>
<br>
<form action="signup" method="POST" name="myform" onSubmit="return show()">
<p><input style="font-size: larger;border-radius: 10px;" type="text" name="name" id="name"placeholder=" Name"></p>
<p><input style="font-size: larger;border-radius: 10px" type="password" name="pwd" id="pwd"placeholder=" Password"></p>
<p><input style="font-size: larger;border-radius: 10px" type="text" name="email" id="email"placeholder=" Email-id"></p>
<p><input style="font-size: larger;border-radius: 10px" type="number" name="no" id="no"placeholder=" Mobile No"></p>
<br>
<p><button>Create</button></p>
</form>
</div>
<br>
<div class="remember-me--forget-password">
<label>
<span>Keep your credentials safe...😊</span>
</label>
</div>
</div>
</div>
</body>
</html>