-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassign-rider.php
36 lines (28 loc) · 943 Bytes
/
assign-rider.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
<form method="post">
<div class="row">
<div>
<h4>RIDER ASSIGNMENT</h4>
<div class="middle">
<?php
$riders = $conn->query('SELECT * FROM rider');
$riders = $riders->fetch_all(MYSQLI_ASSOC);
foreach ($riders as $rider):?>
<label >
<input type="radio" name="myrider" required value=<?php echo '"'.($rider['id']).'"'; ?>/>
<div class="front-end box">
<?php echo ''.$rider['rider_fname'].''.$rider['rider_sname'].'<br> '.
$rider['phone'].'<br> '.
$rider['region'];
?>
</div>
</label>
<?php endforeach;?>
</div>
</div>
</div>
<code>Payment is made at delivery</code>
<!-- <a href="add-addr.php" class="btn btn-warning">add address</a> -->
<button name="assign-rider" value="1">
submit
</button>
</form>