-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathedit_order_form.php
More file actions
59 lines (43 loc) · 2.42 KB
/
edit_order_form.php
File metadata and controls
59 lines (43 loc) · 2.42 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
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css?h=f1d2fef1b7b619906014980fa4fbbe13">
<link rel="stylesheet" href="style.css">
<title>Update Order</title>
</head>
<body>
<div class="text-center">
<form action="<?php echo htmlspecialchars($_SERVER["edit_order.php"]);?>" method="POST">
<h1>Modify Order</h1>
<br>
<label for="Name">Order Name</label>
<input class="form-control" type="text" id="order_name" name="order_name"
value="<?php echo $row['Order_Name'];?>"> <br>
<label for="Sprinkles">Sprinkles - £1 </label>
<input class="form-control" type="number" id="Sprinkles" name="Sprinkles"
value="<?php echo $row['sprinkles'];?>"> <br>
<label for="Chocolate">Chocolate - £1.20</label>
<input class="form-control" type="number" id="Chocolate" name="Chocolate"
value="<?php echo $row['chocolate'];?>"> <br>
<label for="Caramel">Caramel - £1</label>
<input class="form-control" type="number" id="Caramel" name="Caramel" value="<?php echo $row['caramel'];?>">
<label for="Raspberry">Raspberry - 80p</label>
<input class="form-control" type="number" id="Raspberry" name="Raspberry"
value="<?php echo $row['raspberry'];?>"> <br>
<label for="Strawberry">Strawberry - 80p</label>
<input class="form-control" type="number" id="Strawberry" name="Strawberry"
value="<?php echo $row['strawberry'];?>"> <br>
<label for="Blueberry">Blueberry - 80p </label>
<input class="form-control" type="number" id="Blueberry" name="Blueberry"
value="<?php echo $row['blueberry'];?>"> <br>
<input type="hidden" name="Order_ID" value="<?php echo $row['Order_ID'];?>">
<input class="btn btn-primary btn-lg" type="submit" value="Update Order">
</form>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
</body>
</html>