-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
141 lines (133 loc) · 3.15 KB
/
index.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
require('classes/db.php');
$db=new Database();
$db->connect();
if(isset($_SESSION['user'])&&isset($_SESSION['id'])){
header('Location:profile/user.php');
}
?>
<?php
require('layout/header.php')
?>
<div class="container">
<form role="form" method="post" action="php_func/back_validation.php" autocomplete="off" id="form">
<h2>Please Sign Up</h2>
<p>Already a member? <a href='register/login.php'>Login</a></p>
<hr>
<div class="row">
<div class="col-lg-1" style="padding-top:7px">
Username:
</div>
<div class="col-lg-8">
<input class="form-control" id="username" type="text" name="user" placeholder="username" required>
</div>
<div class="col-lg-3">
<div id="status"></div>
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1">
Email:
</div>
<div class="col-lg-8">
<input class="form-control" id="email" type="email" name="email" placeholder="email" required>
</div>
<div class="col-lg-3">
<div id="e_status"></div>
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1">
Password:
</div>
<div class="col-lg-8">
<input class="form-control" id="pass1" type="password" name="pass1" placeholder="password">
</div>
<div class="col-lg-3">
<div id="pass1_status"></div>
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1">
Confirm:
</div>
<div class="col-lg-8">
<input class="form-control" id="pass2" type="password" name="pass2" placeholder="confirm password">
</div>
<div class="col-lg-3">
<div id="pass2_status"></div>
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1">
Fname:
</div>
<div class="col-lg-8">
<input class="form-control" id="first" type="text" name="first" placeholder="firstname" required >
</div>
<div class="col-lg-3">
<div id="first_status"></div>
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1">
Lname:
</div>
<div class="col-lg-8">
<input class="form-control" id="last" type="text" name="last" placeholder="lastname" required>
</div>
<div class="col-lg-3">
<div id="last_status"></div>
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1">
Reg no:
</div>
<div class="col-lg-8">
<input class="form-control" id="regno" type="text" name="regno" placeholder="Register Number" min="8" max="25" required >
</div>
<div class="col-lg-3">
<div id="regno_status"></div>
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1">
Contact:
</div>
<div class="col-lg-8">
<input class="form-control" id="contact" type="tel" name="contact" placeholder="contact" required>
</div>
<div class="col-lg-3"><div id="contact_status"></div></div>
</div>
<br/>
<div class="row">
<div class="col-lg-1">
Domain:
</div>
<div class="col-lg-8">
<input class="form-control" id="domain" type="text" name="domain" placeholder="Domain" required>
</div>
<div class="col-lg-3">
<div id="domain_status"></div>
</div>
</div>
<br/>
<input class="btn btn-info" type="submit" value="Signup" id ="submit">
<br/><br>
<div id="mainerror"></div>
<br><br>
</form>
</div>
<script src="js/front_ver.js" type="text/javascript"></script>
<script src="js/valid.js" type="text/javascript"></script>
<?php
require('layout/footer.php')
?>