-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsignup.php
123 lines (104 loc) · 4.29 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
<?php
session_start();
include 'core/dbh.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Sign Up Page</title>
<link href="css/signup.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Poppins|Roboto&display=swap" rel="stylesheet">
</head>
<body>
<div class="main-container">
<div class="sub-container">
<!-- this div only displays on mobile starting -->
<div class="div_for_mobile_view">
<div class="image_of_team_stack_above">
<center>
<img src="./img/Vector.svg" alt="teamStack" class="above_image">
</center>
</div>
<div class="image_of_team_stack_below">
<img src="./img/TEAM STACK.svg" alt="teamStack" class="below_text">
</div>
<h2 class="welcome_text_mobile">Welcome!</h2>
<p class="welcome_text_p_tag_mobile">Ideate, Brainstorm, and Collaborate.</p>
</div>
<!-- this div only displays on mobile ending -->
<div class="form-container">
<form action="signupcode.php" method="post" class="login-form">
<h1 class="sign_up_text">Sign Up</h1>
<?php
$errMsg = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if (strpos($errMsg, 'error=empty') !== false){
echo "<hr><h5 class='emptyErr'>Kindly fill all fields</h5><hr>";
} else if (strpos($errMsg, 'error=notsame') !== false) {
echo "<hr><h5 class='pwdErrMsg'>Password does not match</h5><hr>";
} else if (strpos($errMsg, 'error=fname') !== false) {
echo "<hr><h5 class='emailErr'>This Email is already taken</h5><hr>";
} else if (strpos($errMsg, 'successful') !== false) {
echo "<hr><h5 class='signMsg'>SignUp Successful</h5><hr>";
}
?>
<div id="emptyFields"></div>
<div class="txtb">
<label class="labels">Full name</label>
<input type="text" placeholder="Team Stack" name="fname">
<span data-placeholder="Username"></span>
</div>
<div class="txtb">
<label class="labels">Username</label>
<input type="text" placeholder="@TeamStack_HNG" name="username">
<span data-placeholder="Password"></span>
</div>
<div class="txtb">
<label class="labels">Email Address</label>
<input type="email" placeholder="[email protected]" name="email">
<span data-placeholder="Password"></span>
</div>
<div class="txtb">
<label class="labels">Password</label>
<input type="password" placeholder="*******" name="pwd">
<span data-placeholder="Password"></span>
<div id="comparePwd"></div>
</div>
<div class="txtb">
<label class="labels">Confirm Password</label>
<input type="password" placeholder="*******" name="confirmPwd">
<span data-placeholder="Password"></span>
</div>
<center>
<input type="submit" class="logbtn" value="Sign Up">
<div class="bottom-text">
<p class="already_user_text"><a href="login.php">Already a user?</a></p>
<div class="backHome"><a href="index.php">HomePage</a></div>
</div>
</center>
</form>
</div>
<div class="welcome_text_div">
<center>
<div class="image_of_team_stack_above">
<img src="./img/Vector.svg" alt="teamStack" class="above_image">
</div>
<div class="image_of_team_stack_below">
<img src="./img/TEAM STACK.svg" alt="teamStack" class="below_text">
</div>
<div class="whole_div_welcome_text">
<p class="welcome_text">Welcome!</p>
<p class="welcome_text_p_tag">Ideate, Brainstorm, and Collaborate.</p>
<div class="image_of_team_stack_below_text">
<img src="./img/Vector (1).svg" alt="teamStack">
<img src="./img/TEAM STACK (1).svg" alt="teamStack" class="below_text_teamStack">
</div>
</div>
</center>
</div>
</div>
</div>
</body>
</html>