-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsignup.php
69 lines (62 loc) · 2.42 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
<!DOCTYPE html>
<html>
<head>
<title>SIGN UP</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="navbar">
<img src="lovesl.png" class="logo" alt="logo" onclick="window.location.href='Main Page/HTML/Loading Home Page.html'">
<ul id="nav-list">
<li><a href="Main Page/HTML/Loading Home Page.html">Home</a></li>
<li><a href="Main Page/HTML/LoadingGallery.html">Gallery</a></li>
<li><a href="Main Page/HTML/LoadingQuiz.html">Quiz</a></li>
<li><a href="Main Page/HTML/LoadingBuyProducts.html">Bookings</a></li>
<li><a href="Main Page/HTML/LoadingSiteMap.html">Site Map</a></li>
<li><a href="Main Page/HTML/LoadingStudentDetails.html">Our Team</a></li>
<li><a href="Main Page/HTML/LoadingQuery.html">Contact Us</a></li>
</ul>
</div>
<form action="signup-check.php" method="post">
<h2>SIGN UP</h2>
<?php if (isset($_GET['error'])) { ?>
<p class="error"><?php echo $_GET['error']; ?></p>
<?php } ?>
<?php if (isset($_GET['success'])) { ?>
<p class="success"><?php echo $_GET['success']; ?></p>
<?php } ?>
<label>Name</label>
<?php if (isset($_GET['name'])) { ?>
<input type="text"
name="name"
placeholder="Name"
value="<?php echo $_GET['name']; ?>"><br>
<?php }else{ ?>
<input type="text"
name="name"
placeholder="Name"><br>
<?php }?>
<label>User Name</label>
<?php if (isset($_GET['uname'])) { ?>
<input type="text"
name="uname"
placeholder="User Name"
value="<?php echo $_GET['uname']; ?>"><br>
<?php }else{ ?>
<input type="text"
name="uname"
placeholder="User Name"><br>
<?php }?>
<label>Password</label>
<input type="password"
name="password"
placeholder="Password"><br>
<label>Confirm Password</label>
<input type="password"
name="re_password"
placeholder="Confirm Password"><br>
<button type="submit">Sign Up</button>
<a href="index.php" class="ca">Already have an account?</a>
</form>
</body>
</html>