-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
42 lines (36 loc) · 1.41 KB
/
index.php
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
<?php require_once("scripts/session_auth.php");
include("scripts/header.php"); ?>
<p></p>
<div id="cont1" class="container">
<?php if (empty($name)) {
?>
<h2>Login</h2>
<p></p>
<form action="scripts/sign_in.php" method="POST" onsubmit="return validateForm()">
<div class="form-group">
<label for="uname">Username:</label>
<input type="text" class="form-control" id="uname" placeholder="Enter username" name="uname" required="">
<!-- <div class="valid-feedback">Valid.</div> -->
<!-- <div class="invalid-feedback">Please fill out this field.</div> -->
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd" placeholder="Enter password" name="pswd" required="">
<!-- <div class="valid-feedback">Valid.</div> -->
<!-- <div class="invalid-feedback">Please fill out this field.</div> -->
</div>
<div class="form-group form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="remember"> Remember me
<!-- <div class="valid-feedback">Valid.</div> -->
<!-- <div class="invalid-feedback">Check this checkbox to continue.</div> -->
</label>
</div>
<button type="submit" class="btn btn-primary" name="login">Submit</button>
</form>
<?php
}
?>
</div>
</body>
</html>