-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_hostel.php
More file actions
56 lines (52 loc) · 1.67 KB
/
Copy pathadd_hostel.php
File metadata and controls
56 lines (52 loc) · 1.67 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
<?php include 'includes/config.php'; ?>
<div>
<?php
if (isset($_SESSION['email'])) {
?>
<div id="carea">
<h1>Add Hostel!</h1>
<div id="fields">
<div class="sep"></div>
<br>
<form action="add_hostel_action.php" method="post">
<div>
<input type="hidden" name="id" value="<?php echo getMemberId($_SESSION['email']) ?>">
</div>
<div>
<input type="text" name="hname" placeholder="Hostel name" required>
</div>
<div>
<select name="htype" id="" required>
<option value="Boys">Boys</option>
<option value="Girls">Girls</option>
</select>
</div>
<div>
<input type="text" name="hcity" placeholder="City" required>
</div>
<div>
<input type="text" name="hsector" placeholder="Sector" required>
</div>
<div>
<textarea name="haddress" placeholder="Enter Your Address.." required></textarea>
</div>
<div>
<label for="">Select Hostel Cover</label><br>
<input type="file" name="profile">
</div>
<div>
<button type="submit" name="hostel_action">Add Hostel</button>
</div>
</form>
</div>
</div>
<?php
}
else
{
?>
<p>Not Logged In!</p>
<?php
}
?>
</div>