-
Notifications
You must be signed in to change notification settings - Fork 0
/
signin.php
95 lines (87 loc) · 3.87 KB
/
signin.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>RENTIX</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/main.css" />
<style>
.is-preload{
--tw-bg-opacity: 1;
background-color : rgba(247,247,248,var(--tw-bg-opacity));
}
</style>
<link rel="shortcut icon" type="image/png" href="assets/img/P.png">
<link rel="stylesheet" href="assets/css/user.css">
<link rel="stylesheet" href="assets/w3css/w3.css">
</head>
<body class="is-preload">
<nav class="navbar navbar-custom" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand page-scroll" href="index.php">
RENTIX </a>
</div>
<div class="collapse navbar-collapse navbar-right navbar-main-collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.php">Home</a>
</li>
</ul>
</div>
</div>
</nav>
<br><br><br>
<footer id="footer">
<div class="inner">
<div class="container">
<h2>Customer SIGN IN</h2>
<form method="POST" action="signin_process.php" onsubmit="return validateForm()" name="signin-form">
<br>
<br>
<br>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" name="email" id="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" name="password" class="form-control" id="password" placeholder="Password">
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>
<form action='#' method='post' onsubmit="return do_login();" id="form1">
<input type='submit' name='submit' class="btn btn-success" value='Log in' />
</form>
</form>
</div>
</div>
</footer>
<!-- <button onclick="window.location.href='signup.php'">Sign Up</button>-->
<a href="signup.php" style="margin-left:60%; color:black ; font-size: 18px;margin-left:47%">create new account ?</a>
<script>
function validateForm() {
let x = document.forms["signin-form"]["email"].value;
let y = document.forms["signin-form"]["password"].value;
if (x == "" && y == "") {
alert("fill out the form");
return false;
} else if (x == "") {
alert("email must be filled out");
return false;
} else if (y == "") {
alert("password must be filled out");
return false;
}
return true;
}
</script>
</body>
</html>