-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsignup.php
executable file
·105 lines (82 loc) · 2.5 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
<?php include('server.php') ?>
<!DOCTYPE html>
<html>
<head>
<!-- Site Properties -->
<title>Sign Up</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.css">
<style type="text/css">
body {
background-color: #F5EAD1;
}
body > .grid {
height: 100%;
}
.column {
max-width: 450px;
}
.input {
width: 100%;
margin: 0.3em 0;
}
.field button {
margin-top: 1em !important;
}
</style>
</head>
<body>
<div class="ui middle aligned center aligned grid">
<div class="column">
<h2 class="ui green header">
<div class="content">
Create an account
</div>
</h2>
<form method="post" actions="signup.php">
<?php include('errors.php'); ?>
<form class="ui large form">
<div class="ui stacked segment">
<div class="field">
<div class="ui left icon input">
<i class="user icon"></i>
<input type="text" name="username" placeholder="Username" value="<?php echo $username; ?>">
</div>
</div>
<div class="field">
<div class="ui left icon input">
<i class="envelope icon"></i>
<input type="text" name="email" placeholder="E-mail address" value="<?php echo $email; ?>">
</div>
</div>
<div class="field">
<div class="ui left icon input">
<i class="lock icon"></i>
<input type="password" name="password_1" placeholder="Password">
</div>
</div>
<div class="field">
<div class="ui left icon input">
<i class="lock icon"></i>
<input type="password" name="password_2" placeholder="Confirm Password">
</div>
</div>
<div class="field">
<button type="submit" class="ui large fluid green submit button" name="reg_user">Register</button>
</div>
<!-- <div class="ui fluid large green submit button" name="reg_user">Sign up</div> -->
</div>
</form>
<div class="ui message">
Have an account already? <a href="signin.php">Log in here.</a>
</div>
<a href="index.php">
<button class="ui fluid large primary button">
<i class="left arrow icon "></i>
Home
</button>
</a>
</form>
</div>
</div>
</body>
</html>