-
Notifications
You must be signed in to change notification settings - Fork 0
/
signin.php
48 lines (36 loc) · 1.58 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
<?php
include("php/controllers/signin-ctrl.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sign in</title>
<link rel="stylesheet" href="styles/signin.css">
<link rel="stylesheet" href="styles/forms.css">
<?php include_once('php/includes/common-css-js.php'); ?>
</head>
<body>
<?php include('php\templates\header.php'); ?>
<form class="simple-form" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" method="post">
<div class="form-field">
<div for="email">E-mail</div>
<input type="email" name="email" value="<?php echo $values['email'] ?>">
<?php if (!empty($errors['email'])) echo "<div class='error'>*".$errors['email']."</div><br>"; ?>
</div>
<div class="form-field">
<div for="pwd">Password</div>
<input type="password" name="password" value="<?php echo $values['password'] ?>">
<?php if (!empty($errors['password'])) echo "<div class='error'>*".$errors['password']."</div><br>"; ?>
</div>
<?php if (!empty($errors['form'])) echo "<div class='form-field error'>*".$errors['form']."</div><br>"; ?>
<?php if (!empty($_GET['redirect'])) echo "<input type='hidden' name='redirect' value='".$_GET['redirect']."'>"; ?>
<div class="form-field">
<a href="register.php">Create an account</a>
</div>
<div class="form-field">
<input type="submit" name="submit" value="Submit">
</div>
</form>
<?php include('php\templates\footer.php'); ?>
</body>
</html>