-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup_three.php
194 lines (126 loc) · 3.96 KB
/
signup_three.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?php
include 'connect.php';
if(isset($_POST["submit"])){
if(isset($_POST["tc"])){
session_start();
$name = $_SESSION["name"];
$email = $_SESSION["email"];
$password = md5($_SESSION["password"]);
$query = "INSERT INTO Users values('$name','$email','$password')";
$result = mysqli_query($conn,$query);
if($result){
//Deleting session variables as the data has been inserted into the database
unset($_SESSION["name"]);
unset($_SESSION["email"]);
unset($_SESSION["password"]);
session_abort();
//Redirecting the user to login page
header('Location:login.php');
exit();
}
else{
echo "Some Error Occured";
}
}
}
?>
<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">
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="./signup_three.css">
<link rel="icon" href="./Media/kklogo_final.png">
<script src="./script.js" defer></script>
<script src="registration_validation.js" defer></script>
<title>Sign Up</title>
<style>
input[type="submit"]{
margin-left: 45%;
width: 10%;
height: 40px;
border-radius: 20px;
background-color: green;
border: none;
font-size: 30px;
color: white;
font-weight: bolder;
margin-top: 40px;
}
input[type="submit"]:hover{
background-color: rgb(3, 72, 3);
cursor: pointer;
padding-left: 1%;
}
a{
color:green;
}
input[type="radio"]{
height:50px;
width:20px;
position:relative;
right:3%;
}
input[type="radio"]:hover{
cursor:pointer;
margin-right:2px;
}
span.ag{
position:relative;
bottom:20px;
right:2.5%;
font-size:20px;
font-weight:bolder;
}
</style>
</head>
<body>
<div class="navbar">
<ul>
<li><a href="./index.html"><img id="logo" src="./Media/kklogo_final.png" alt=""></a></li>
<li class="nav_item" id="home"><a href="./index.html">Home</a></li>
<li class="nav_item" id="about"><a href="./about.html">About</a></li>
<li class="nav_item" id="contact"><a href="./contact.html">Contact Us</a></li>
<li class="nav_item" id="log_in"><a href="login.php">Log In</a></li>
</ul>
</div>
<div class="menu_container">
<button id="menu"><img src="./Media/menu.png" alt=""> </a> </button>
</div>
<div id="menu_items">
<ul>
<li><a href="./index.html">Home</a></li>
<li><a href="./about.html">About</a></li>
<li><a href="./contact.html">Contact</a></li>
<li><a href="./login.php">Log In</a></li>
</ul>
</div>
<h1 class="title">Sign Up</h1>
<h3 class="title">Go through our 3-steps signup process to get registered</h3>
<div class="steps">
<div id="one">1</div>
<div id="two">2</div>
<div id="three">3</div>
</div>
<center>
<div class="form">
<!-- <h1 id="title">Terms and Conditions</h1> <br> <br> -->
<br><br>
<form action="" method="POST">
<h1>Do you agree to the <a href="tc.html" target="_blank">terms and conditions?</a></h1>
<input name="tc" type="radio" value="agree"> <span class="ag">I Agree</span>
<!-- <a href="signup_three.html"> <br><br><div title="Finish" class="next">Finish </div></a> <br><br> -->
</center>
<input name="submit" type="submit" value="Finish">
</form>
<div class="join-us">
<img src="../Source/Media/join-us.png" alt="">
</div>
<div class="footer">
© 2023 Kitchen Kourier Pvt. Ltd.
</div>
</body>
</html>
<?php
?>