-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignup.php
43 lines (41 loc) · 1.49 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
<?php
include("templates/header.php");
require_once("utils/dbconnect.php");
require_once("utils/api.php");
require_once("templates/display_labels.php");
require_once("utils/authenticate.php");
$db=getdb();
$auth = new authenticate();
session_start();
?>
<div class="row">
<div class="large-3 columns" style="min-height: 700px"></div>
<div class="large-6 columns" style="margin-top: 100px">
<?php
if(isset($_SESSION['create_success'])) {
echo $_SESSION['create_success'];
unset($_SESSION['create_success']);
}
else {
?>
<form method="POST" action = "ajax/createUser.php" id = "userSignup">
<label for="username">Username</label>
<input type="text" id="username" name = "username">
<label for="email">Email Address</label>
<input type="text" id="email" name = "email">
<label for="password">Password</label>
<input type="password" name = "password" id="password">
<label for="confirm_password">Confirm Password</label>
<input type="password" name = "confirm_password" id="confirm_password">
<div style="margin-top:10px"><?php echo $_SESSION['create_error']; unset($_SESSION['create_error']); ?></div>
<input type="submit" id="login" value="Sign Up" class="button" style="top:10px; left:40%">
</form>
<?php
}
?>
</div>
<div class="large-3 columns"></div>
</div>
<?php
include("templates/footer.php");
?>