-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
58 lines (47 loc) · 1.74 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width , initial-scale=1">
<title>SIGN UP</title>
<link rel="stylesheet" type="text/css" href="signup.css">
<h1>Registration</h1>
</head>
<body>
<div class="box">
<form action="signup-check.php" method="post">
<h2>SIGN UP</h2>
<hr>
<?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 } ?>
<?php if (isset($_GET['email'])) { ?>
<input type="email" name="email" placeholder="Email"
value="<?php echo $_GET['email']; ?>"><br>
<?php }else{ ?>
<input type="email" name="email" placeholder="Email"><br>
<?php }?>
<?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 }?>
<input type="password"
name="password"
placeholder="Password"><br>
<input type="password"
name="re_password"
placeholder="Confirm Password"><br>
<button type="submit">Sign Up</button>
<br>
<a href="login.php" class="ca">Already have an account?</a>
</form>
</div>
</body>
</html>