-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
45 lines (35 loc) · 1.24 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
<?php
$layout_context = 'public';
require_once("static/includes/sessions.php");
require_once("static/includes/functions.php");
if(isset($_SESSION["username"])){ // is the user already logged in?
redirect_to('admin.php');
}
require_once("static/includes/dbsetup.php");
include "static/includes/layouts/open.php"; // set the headers
?>
<div class="main">
<h5>Sign up - Iqra</h5>
<div class="page row teal lighten-5">
<form role="form" name="signup" action="signup_action.php" method="post" onsubmit="return validateForm();" >
<div class="col s4">
<div class="input-field">
<input type="text" name="username_" ><span id="error1"></span>
<label for="menu_name">Username</label>
</div>
<div class="input-field">
<input type="password" name="new_password_" autocomplete="new-password"><span id="error2"></span>
<label for="menu_name">Password</label>
</div>
<div class="input-field">
<input type="password" name="confirm_password_" autocomplete="new-password"><span id="error3"></span>
<label for="menu_name">Confirm Password</label>
</div><br><br>
<button class="btn" type="submit" name="submit">Sign Up</button>
</div>
</form>
</div>
</div>
<?php
include "static/includes/layouts/close.php";
?>