-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathregistration.php
More file actions
61 lines (53 loc) · 1.56 KB
/
registration.php
File metadata and controls
61 lines (53 loc) · 1.56 KB
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
<?php
include( "registrationHandler.php" );
session_start();
if ( isset( $_SESSION[ "userid" ] ) ) {
$type = redirect( getUserType( $_SESSION[ "userid" ] ) );
redirect( $type );
}
session_destroy();
?>
<?php include( "mainHeader.php" ); ?>
<div class="tab-content">
<div class="tab-content-inner active" data-content="signup">
<h3>Register</h3>
<form action="registrationHandler.php" method="post">
<div class="row form-group">
<div class="col-md-12">
<?php
if (isset($_GET["status"])) {
echo $_GET["status"];
}
?>
</div>
<div class="col-md-12">
<label id="out"></label>
</div>
<div class="col-md-12">
<label>E-Mail</label><input type="text" id="e-mail" name="formname" class="form-control">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<label>Password</label><input type="password" id="pass" name="formpassword" class="form-control">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<label>Confirm Password</label><input type="password" id="pass" name="formcnfpassword" class="form-control">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<input type="submit" name="submit" class="btn btn-primary btn-block" value="Submit">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<a href="login.php" ><input type="button" class="btn btn-primary btn-block" value="Login"></a>
</div>
</div>
</form>
</div>
</div>
<?php include( "mainFooter.php" ); ?>