-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsign_up.php
80 lines (76 loc) · 3.86 KB
/
sign_up.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
<?php
session_start();
include "templates/header.php";
include "./functions/verifyLoginDetails.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sign Up</title>
</head>
<body class="purp_body">
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<div class="title">
Sign Up
</div>
<div class="subtitle">
<strong>We'll just need a few details from you to get started with posting your very own
crazy</strong><img src="./imgs/logo_rec_white.png" alt="" width="112" height="15">
</div>
<section class="section">
<div class="container has-text-centered">
<div class="columns is-centered">
<div class="column is-5 is-4-desktop">
<form method="post" action="forms/signup.php">
<div class="field">
<div class="control">
<input class="input" type="text" name="username" placeholder="Username" value="Hallocoos">
</div>
</div>
<div class="field">
<div class="control">
<input class="input" type="text" name="email" placeholder="Email" value="[email protected]">
</div>
</div>
<div class="field">
<div class="control">
<input class="input" type="password" name="password" placeholder="Password" value="q1w2e3Q!W@E#">
</div>
</div>
<div class="field">
<div class="control">
<input class="input" type="password" name="repeatpassword" placeholder="Repeat Password" value="q1w2e3Q!W@E#">
</div>
</div>
<div class="field is-grouped">
<div class="control is-expanded">
<button type="Submit" value="Submit" class="button is-primary is-fullwidth">Sign up!</button>
</div>
</div>
<span>
<?php
if ($_SESSION['signup_success'] == TRUE) {
echo "Signup success please check your email to verify your account. After account verification, you can set you account details in the settings section.";
$_SESSION['error'] = NULL;
$_SESSION['signup_success'] = NULL;
} else if ($_SESSION['error'] !== NULL) {
echo " Signup failed. " . $_SESSION['error'];
$_SESSION['error'] = NULL;
}
?>
</span>
</form>
</div>
</div>
</div>
</section>
</div>
</div>
</section>
<?php
include "templates/footer.php";
?>
</body>
</html>