-
Notifications
You must be signed in to change notification settings - Fork 0
/
details_form.php
214 lines (183 loc) · 7.01 KB
/
details_form.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<?php
session_start();
$db = mysqli_connect('localhost', 'root', 'root', 'registration');
if (!isset($_SESSION['username'])) {
$_SESSION['msg'] = "You must log in first";
header("Location: register.php");
}
if (isset($_GET['logout'])) {
session_destroy();
unset($_SESSION['username']);
header("Location: register.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title> Registration Details</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/css.css">
</head>
<body>
<div class="toast fade show" data-autohide="false" style="position: fixed; right: 0; width: 300px; margin-top: 1%; z-index: 200;">
<div class="toast-header">
<strong class="mr-auto text-primary">
<!-- notification message -->
<?php if (isset($_SESSION['success'])) : ?>
<div class="error success">
<h3 style="font-size: 1rem;">
<?php
echo $_SESSION['success'];
unset($_SESSION['success']);
?>
</h3>
</div>
<?php endif ?>
</strong>
<small class="text-muted">5 mins ago</small>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast">×</button>
</div>
<div class="toast-body">
<!-- logged in user information -->
<?php if (isset($_SESSION['username'])) : ?>
<h6>Welcome <strong><?php echo $_SESSION['username']; ?></strong><br>
<a href="register.php?logout='1'" style="color: red;">Logout</a> </h6>
<?php endif ?>
</div>
</div>
<div class="page-content">
<div class="form-v10-content">
<form class="form-detail" action="home.php" method="post" id="myform">
<div class="form-left">
<h2>General Infomation</h2>
<div class="form-group">
<div class="form-row form-row-1">
<input type="text" name="first_name" id="first_name" class="input-text" placeholder="First Name" required>
</div>
<div class="form-row form-row-2">
<input type="text" name="last_name" id="last_name" class="input-text" placeholder="Last Name" required>
</div>
</div>
<div class="form-row">
<input type="text" name="age" class="company" id="company" placeholder="Age" required>
</div>
<div class="form-row">
<input list="title" name="job" id="titles" placeholder="Present Job">
<datalist id="title">
<option value="Web Developer">
<option value="Software Developer">
<option value="Graphic Designer">
<option value="SEO specialist">
<option value="Content Writer">
</datalist>
</div>
<div class="form-row">
<input type="text" name="company" class="company" id="company" placeholder="Company" required>
</div>
<div class="form-group">
<div class="form-row form-row-3">
<input type="text" name="service1" class="business" id="Skills" placeholder="Services You Provide1" required>
</div>
</div>
<div class="form-group">
<div class="form-row form-row-3">
<input type="text" name="service2" class="business" id="Skills" placeholder="Services You Provide2" required>
</div>
</div>
<div class="form-row">
<textarea type="textbox" rows="03" cols="55" name="about" class="about" id="about" placeholder="Write about yourself..." required></textarea>
</div>
<div class="form-group">
<div class="form-row form-row-1">
Upload your profile photo:
<input type="file" name="photo" id="fileToUpload">
</div>
</div>
<div class="form-group">
<div class="form-row form-row-1">
Resume:
<input type="file" name="resume" id="fileToUpload">
</div>
</div>
</div>
<div class="form-right">
<h2>Contact Details</h2>
<div class="form-row">
<input type="text" name="address" class="street" id="street" placeholder="Address" required>
</div>
<div class="form-row">
<input type="text" name="land_mark" class="additional" id="additional" placeholder="Landmark" required>
</div>
<div class="form-group">
<div class="form-row form-row-1">
<input type="text" name="zip_code" class="zip" id="zip" placeholder="Zip Code" required>
</div>
<div class="form-row form-row-2">
<select name="district">
<option value="Alappuzha">Alappuzha</option>
<option value="Ernakulam">Ernakulam</option>
<option value="Idukki">Idukki</option>
<option value="Kannur">Kannur </option>
</select>
<span class="select-btn">
<i class="zmdi zmdi-chevron-down"></i>
</span>
</div>
</div>
<div class="form-row">
<select name="country">
<option value="country">Country</option>
<option value="Vietnam">Vietnam</option>
<option value="Malaysia">Malaysia</option>
<option value="India">India</option>
</select>
<span class="select-btn">
<i class="zmdi zmdi-chevron-down"></i>
</span>
</div>
<div class="form-group">
<div class="form-row form-row-1">
<input type="text" name="code" class="code" id="code" placeholder="Code +" required>
</div>
<div class="form-row form-row-2">
<input type="text" name="phone" class="phone" id="phone" placeholder="Phone Number" required>
</div>
</div>
<div class="form-row">
<input type="text" name="email" id="your_email" class="input-text" required pattern="[^@]+@[^@]+.[a-zA-Z]{2,6}" placeholder="Your Email">
</div>
<div class="form-row">
<input type="text" name="social_account_1" id="your_email" class="input-text" placeholder="Github account">
</div>
<div class="form-row">
<input type="text" name="social_account_2" id="your_email" class="input-text" placeholder="Instagram account">
</div>
<div class="form-row">
<input type="text" name="social_account_3" id="your_email" class="input-text" placeholder="Linkedin account">
</div>
<div class="form-row">
<input type="text" name="social_account_4" id="your_email" class="input-text" placeholder="Twitter account">
</div>
<div class="form-checkbox">
<label class="container"><p>I do accept the <a href="#" class="text">Terms and Conditions</a> of your site.</p>
<input type="checkbox" name="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="form-row-last">
<input type="submit" name="register" class="register" value="Register">
</div>
</div>
</form>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$('.toast').toast('show');
});
</script>
</body>
</html>