-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
123 lines (118 loc) · 5.89 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
116
117
118
119
120
121
122
123
<!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>Sign Up|Soul.Pay</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<link rel="stylesheet" href="CSS/navbar.css">
<link rel="stylesheet" href="CSS/footer.css">
<link rel="stylesheet" href="CSS/style.css">
<link rel="stylesheet" href="CSS/signup.css">
<link rel="shortcut icon" href="Assets/Images/favicon.ico" />
<script src="https://kit.fontawesome.com/62d06b97ac.js" crossorigin="anonymous"></script>
</head>
<body>
<?php
include("INCLUDES/navbar.php");
?>
<div class="section">
<div class="open-account">
<div class="open-account-text">
<h1>Open Your Account with Soul.pay!</h1>
<p>Get an Instant account by signing up now!</p>
</div>
<div class="open-account-box">
<?php
function showerror($message){
echo "<div class=\"errorbox\">";
echo "<i class=\"fas fa-exclamation-circle\"></i>";
echo "<p>".$message."</p>";
echo "</div>";
}
if(isset($_GET['error'])){
$error=$_GET['error'];
if($error == 'uidexists'){
showerror("User already Exists!");
}
if($error == 'pwdnomatch'){
showerror("The passwords don't match!");
}
if($error == 'pwdstrength'){
showerror("Please make the password more strong!");
}
}
?>
<form action="INCLUDES/signup.inc.php" method="POST">
<div class="container">
<div class="row">
<div class="col-md">
<label for="fname">First Name
</label>
<input type="text" id="fname" name="fname" placeholder="What's your first name?" autocomplete="on" onkeypress="return /[a-z]/i.test(event.key)" required>
</div>
<div class="col-md">
<label for="lname">Last Name
</label>
<input type="text" id="lname" name="lname" placeholder="What's your last name?" autocomplete="on" onkeypress="return /[a-z]/i.test(event.key)" required>
</div>
</div>
<div class="row">
<div class="col-md">
<label for="email">Email
</label>
<input type="email" id="email" name="email" placeholder="What's your email?" autocomplete="on" required>
</div>
<div class="col-md">
<label for="phone">Phone
</label>
<input type="number" id="phone" name="phone" placeholder="xxx-xxx-xxxx" autocomplete="on" onKeyPress="if(this.value.length==10) return false;" required>
</div>
</div>
<div class="row">
<div class="col">
<label for="pass">Password
</label>
<input type="password" id="pass" name="pwd" placeholder="Pick a strong password" autocomplete="new-password" onkeydown="triggerPwdPolicy()" required>
</div>
</div>
<div class="row set-pwd-policy">
<div class="col pwd-policy">
<div class="">
<span class="pwd-head">Your password must contain:</span>
<ul class="pwd-body">
<li class="">At least 8 characters</li>
<li class="">Contain at least 3 of the following:
<ul class="">
<li class="">Lower case letters (a-z)</li>
<li class="">Upper case letters (A-Z)</li>
<li class="">Numbers (0-9)</li>
<li class="">Special characters (ex. !@#)</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="col">
<label for="cpass">Confirm Password
</label>
<input type="password" id="cpass" name="pwdrepeat" placeholder="Repeat password" autocomplete="on" required>
</div>
</div>
</div>
<button class="button-primary large" name="submit" type="submit">
Sign Up
</button>
</form>
</div>
</div>
</div>
<?php
include("INCLUDES/footer.php");
?>
</body>
<script src="JS/signup.js"></script>
</html>