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
/
signup.php
68 lines (64 loc) · 3.16 KB
/
signup.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
<!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 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/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous">
</script>
</body>
</html>