This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
forked from akshayp282/QuizX
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.php
90 lines (85 loc) · 4.44 KB
/
main.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
<!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/bootstrap@5.0.0-beta3/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>
</form>
</div>
</div>
</div>
<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 Up</h5>
<form class="form-signin" action="/partials/_handleSignup.php" method="post">
<div class="form-label-group">
<input type="text" id="inputname" name="inputname" class="form-control"
placeholder="Email address" required autofocus>
<label for="inputname">Name</label>
</div>
<div class="form-label-group">
<input type="email" id="inputEmail" name="inputEmail" class="form-control"
placeholder="Email address" required autofocus>
<label for="inputEmail">Email address</label>
</div>
<div class="form-label-group">
<input type="password" id="inputPassword" name="inputPassword"
action="/partials/_handleLogin.php" method="post" class="form-control"
placeholder="Password" required>
<label for="inputPassword">Password</label>
</div>
<div class="form-label-group">
<input type="password" id="inputcPassword" name="inputcPassword" class="form-control"
placeholder="Password" required>
<label for="inputcPassword">Confirm Password</label>
</div>
<button class="btn btn-lg btn-danger btn-block text-uppercase" type="submit">Sign
up</button>
</form>
</div>
</div>
</div>
</div>
</div>';
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous">
</script>
</body>
</html>