-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewPollingUnit.php
More file actions
55 lines (50 loc) · 1.92 KB
/
newPollingUnit.php
File metadata and controls
55 lines (50 loc) · 1.92 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
<?php
require_once('./model/connection.php');
$title = "New Polling Unit";
require_once('./header.php');
require_once('./navbar.php')
?>
<body style="background-color: #38405A;">
<div style="display: flex; align-items: center; justify-content: center; height: 100vh;">
<div class="container bg-white p-4">
<?php
require_once('./message.php');
?>
<div class="">
<form action="./controller/newPu.php" method="post">
<div class="row">
<div class="col-lg-6">
<label for="">Select Party</label>
<select name="p_name" id="" class="form-control">
<option>---Select Party---</option>
<?php
$sql = "SELECT * FROM announced_pu_results";
$result = mysqli_query($con, $sql);
while($row = mysqli_fetch_array($result)){
$name = $row['party_abbreviation'];
?>
<option><?=$name?></option>
<?php
}
?>
</select>
</div>
<div class="col-lg-6">
<label for="">Enter Polling Unit</label>
<input name="pu_name" type="text" class="form-control">
</div>
</div>
<div class="text-center mt-4">
<button class="btn btn-primary" name="submit">Submit</button>
</div>
</form>
</div>
</div>
</div>
</body>
</div>
</div>
</body>
<?php
require_once('./footer.php')
?>