-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
75 lines (55 loc) · 1.87 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
<?php
session_start();
include("classes/connect.php");
include("classes/login.php");
$email = "";
$password = "";
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
$login = new Login();
$result = $login->evaluate($_POST);
if($result != ""){
echo"<div>";
echo"The following error occured<br>";
echo $result;
echo"</div>";
}else
{
header("Location: learningnotify.php");
die;
}
$email = $_POST['email'];
$password = $_POST['password'];
}
?>
<html>
<head>
<title>Learning Notify | Log in</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<header>
<a href="http://localhost/IWT%20Repate/signup.php"><button class="button3">Sign Up</button></a>
<div class="bar">
<hgroup>
<img src="Images/logo2.png">
</hgroup>
</header>
</div>
<div class="container">
<div class="bg-img1">
<div class="container1">
<form method="post">
<h4><strong>Log in</strong></h4>
<label for="email"><b>Email</b></label>
<input name="email" value="<?php echo $email ?>" type = "text" id="text" style="height:40px; width:300px; border-radius:4px; border:solid 1px #888;font-size:14px;" placeholder="Email"><br><br>
<label for="email"><b>password</b></label>
<input name="password" value="<?php echo $password ?>" type="password" id="text" style="height:40px; width:300px; border-radius:4px; border:solid 1px #888;font-size:14px;" placeholder="Password"><br><br>
<input type="Submit" id="button2"style="width:300px; height:40px; border-radius:4px; font-weight:bold;background-color:#bf00ff; color:white;" value="Log in">
</form>
</div>
</div>
</div>
</body>
</html>