-
Notifications
You must be signed in to change notification settings - Fork 5
/
signup.php
115 lines (92 loc) · 4.62 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
session_start();
?>
<!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">
<title>signup</title>
<link rel="icon" href="images/quiz.png">
</head>
<body class="noOverFlow bodycolor">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="bot/css/bootstrap.min.css">
<?php
if (!isset($_SESSION['logedin']) || $_SESSION['logedin'] != true) {
echo '<nav class="navbar navbar-expand-lg bg-body-tertiary py-0">
<div class="container-fluid navbar-dark bg-primary py-1">
<a class="navbar-brand" href="index.php"><img src="images/quiz.png" height="30px" alt=""></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll"
aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarScroll">
<ul class="navbar-nav me-auto navbar-nav-scroll" style="--bs-scroll-height: 180px;">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="login.php">login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="signup.php">sign up</a>
</li>
</ul>
</div>
</div>
</nav>';
} else {
?>
<nav class="navbar navbar-expand-lg bg-body-tertiary py-0">
<div class="container-fluid navbar-dark bg-primary py-1">
<a class="navbar-brand" href="index.php"><img src="images/quiz.png" height="30px" alt=""></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll"
aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarScroll">
<ul class="navbar-nav me-auto navbar-nav-scroll" style="--bs-scroll-height: 180px;">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.php">logout</a>
</li>
</ul>
</div>
</div>
</nav>
<?php } ?>
<div class="formcontainer">
<div class="myform signupForm">
<h5 style="left: 11%" class="heading-font logHeading mx-2">Signup to our website</h5>
<div class="mb-3 signcontent">
<label for="signInputEmail1" style="margin-left: -137%;" class="form-label logLabel cursor-ptr">Email
address</label>
<input type="email" required class="loginItem cursor-ptr" id="signInputEmail1" aria-describedby="emailHelp">
<hr class="loghr evenwidth">
</div>
<div class="mb-3 signcontent">
<label for="signInputPassword1" style="margin-left: -154%;" class="form-label logLabel cursor-ptr">Password</label>
<input type="password" required class="loginItem cursor-ptr" id="signInputPassword1">
<hr style="margin-left: 12%" class="loghr">
</div>
<div class="mb-3 signcontent">
<label for="csignInputPassword2" style="margin-left: -126%;" class="form-label logLabel cursor-ptr">Confirm
Password</label>
<input style="left: 9%" type="password" required class="loginItem cursor-ptr" id="csignInputPassword2">
<hr style="margin-left: 9%" class="loghr">
</div>
<button class="btn btn-primary" style="margin-left: 37%;" id="signupbtn">Signup</button>
</div>
</div>
<div class="alertdiv">
</div>
<!--<img src="images/white-bc.jpg" class="logImg" alt="">-->
<!--<img src="images/mbbc.jpg" class="imager logImager signupImager" alt="">-->
<script src="bot/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>