-
Notifications
You must be signed in to change notification settings - Fork 3
/
signin.php
60 lines (57 loc) · 2.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>QuizX</title>
</head>
<body>
<?php include 'partials/_header.php'?>
<div class="container my-3">
<h1 class="text-center text-light">
Welcome to QuizX.
</h1>
</div>
<?php
$role = $_GET['role'];
$_SESSION['role'] = $role;
?>
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-5 mx-auto">
<div class="card card-signin my-5">
<div class="card-body">
<h5 class="card-title text-center">Sign In</h5>
<form class="form-signin" action="/partials/_handleLogin.php" method="post">
<div class="form-label-group">
<input type="email" id="inputEmailin" name="inputEmailin" class="form-control"
placeholder="Email address" required autofocus>
<label for="inputEmailin">Email address</label>
</div>
<div class="form-label-group">
<input type="password" id="inputPasswordin" name="inputPasswordin" class="form-control"
placeholder="Password" required>
<label for="inputPasswordin">Password</label>
</div>
<button class="btn btn-lg btn-success btn-block text-uppercase" type="submit">Sign
in</button>
<div class="form-label-group">
<span class="text-muted">Don't have an account?</span>
<?php echo '<a href="signup.php?role='.$role.'">Register</a> Here'; ?>
</div>
</form>
</div>
</div>
</div>
</div>
</div>';
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous">
</script>
</body>
</html>