-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.php
60 lines (52 loc) · 2.28 KB
/
login.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php
session_unset();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Motofitness</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<div class="container">
<nav class='navbar navbar-light bg-light row'>
<?php
// put your code here
session_start();
include "daoMySQL.php";
print("
<a class='navbar-brand' href='login.php'>LogIn</a>
<a class='navbar-brand' href='signupform.php'>SignUp</a>
");
?>
</nav>
<div class="row">
<div class="col-md-6 login-form-1">
<h3>Login Motofitness</h3>
<form action="index.php" method="post">
<div class="form-group">
<input type="text" class="form-control" name="user" placeholder="Your user" value="" />
</div>
<div class="form-group">
<input type="password" class="form-control" name="pwd" placeholder="Your Password" value="" />
</div>
<div class="form-group">
<input type="submit" class="btnSubmit" value="Login" />
</div>
<div class="form-group">
<a href="#" class="ForgetPwd">Forget Password?</a>
</div>
<p style='color: #FF0000;'><?php
if (isset($_SESSION['resLogin']) && $_SESSION['resLogin'] == "Usuario o clave incorrectos") {
print("Usuario o clave incorrectos");
}
?></p>
</form>
</div>
</div>
</div>
</body>
</html>