-
Notifications
You must be signed in to change notification settings - Fork 0
/
practice.html
154 lines (151 loc) · 6.54 KB
/
practice.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>PHP Login System</title>
<style>
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
#h1{
background-color: rgba(14,135,130,255);
}
body{
background-color: rgba(254,230,170,255);
}
.row{
background-color:rgba(255,167,129,255);
border-top-left-radius: 30px;
border-top-right-radius: 30px;
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px;
box-shadow: 12px 12px 22px rgba(255,167,129,255) ;
}
img{
border-top-left-radius: 30px;
border-top-right-radius: 30px;
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px;
}
.btn1{
border: none;
outline: node;
height: 50px;
width: 100%;
background-color:black;
color: white;
border-radius: 4px;
font-weight: bold;
}
.btn1:hover{
background: rgba(19,135,132,255);
border:5px solid;
color:black;
}
.navbar-custom{
background-color: black;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light
">
<a class="navbar-brand" href="">ID MAKER</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</nav>
<section class="Form my-4 mx-5">
<div class="container">
<div class="row no-gutters" id="frm">
<div class="col-lg-5">
<img src="https://www.fonewalls.com/wp-content/uploads/1440x2560-Background-HD-Wallpaper-465-768x1365.jpg" class="img-fluid" alt="">
</div>
<div class="col-lg-7 px-5 pt-5">
<h1 class="font-weight-bold py-3">Login Page</h1>
<form name="f1" action="authentication.php" onsubmit="validation()" method="POST">
<div class="form-row">
<div class="col-lg-7">
<input type="text" id="user" name="user" class="form-control my-3 p-4" placeholder="E-mail Adress" required="required">
</div>
</div>
<div class="form-row">
<div class="col-lg-7">
<input type="text" id="usertype" name="usertype" class="form-control my-3 p-4" placeholder="Enter Your User type" required="required">
</div>
</div>
<div class="form-row">
<div class="col-lg-7">
<input type="password" id="pass" name="pass" class="form-control my-3 p-4" required="required" placeholder="*******">
</div>
</div>
<div class="form-row">
<div class="col-lg-7">
<button type="submit" id="btn" class="btn1 mt-3 mb-5" value="Login">Login</button> </div>
</div>
<p>Don't have account?</p><a href="createrAccount.php">Register here</a> <!--Have to chage while creating web-->
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> -->
<script>
function validation()
{
var id= document.getElementById("user").value
var ps=document.getElementById("pass").value
if(id.length=="" && ps.length=="") {
// alert("User Name and Password fields are empty");
<div class="alert alert-danger" role="alert">
User Name and Password fields are empty
</div>
return false;
}
else
{
if(id.length=="") {
// alert("User Name is empty");
<div class="alert alert-danger" role="alert">
User Name is empty
</div>
return false;
}
if (ps.length=="") {
// alert("Password field is empty");
<div class="alert alert-danger" role="alert">
Password is empty
</div>
return false;
}
}
}
</script>
</body>
</html>