-
Notifications
You must be signed in to change notification settings - Fork 0
/
Login.php
95 lines (81 loc) · 2.47 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
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
<!--
Topic: Graded Unit
Student No: 21013159
Student Name: Maximilian Nwosu
School: UHI Inverness
Date: 31 01 23
This file is the Login page that offers the user form to enter details.
-->
<html>
<head>
<title>Inver Tyre Services</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="stylesheet.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="validate.js"></script>
</head>
<body>
<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
<div class="topnav" id="myTopnav">
<a link rel="Home" href="index.php" class="active">Home</a>
<a link rel="SignUP" href="SignUp.php">Sign Up</a>
<a link rel="Contact Us" href="ContactUs.php">Contact Us</a>
<a link rel="About Us" href="aboutUs.php">About Us</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i></a>
</div>
<br><br>
<div class="header">
<h1>Inver Tyre Services</h1>
<h2>Your one-stop spot for Tyre Services.</h2>
<h2 id="summary"> Live the experience.</h2>
</div>
<script src="validate.js"></script>
<h3>Enter User Email and password</h3>
<form name="Login" onsubmit="return validateForm();" action="CheckUser.php" method="post">
<table class="login">
<tr>
<td>Email address :</td>
<td><input type="text" name="email" size="30"/></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" size="30"/></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Login"/><br><br><input type="reset" value="Reset"/></td>
</tr>
<?php
session_start();
if(isset($_SESSION["error"]))
{
echo '<div class="error" id="error">' . $_SESSION['error'] . '</div>';
unset($_SESSION['error']);
}
?>
</table>
</form>
<h3>New User? Sign up!</h3>
<FORM METHOD="LINK" ACTION="SignUp.php">
<table class="login">
<td><INPUT class="adduser" id="login" TYPE="submit" VALUE="Sign Up"></td>
</table>
</FORM>
</body>
<footer>
<div class="footer">
© Inver Tyre <?php echo date("Y");?>
<p>We deliver excellence in tyre services.</p>
</div>
</footer>
</html>