-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.php
46 lines (32 loc) · 1.31 KB
/
test.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
<?php
include('includes/header.php');
?>
<section id="orderInfo">
<form id="item1" action="" method="post">
<p>Item 1</p>
<input type="submit" name="add-cart" class="add-cart" value="Add to cart">
<input type="hidden" name="prodID" value="1">
</form>
<form id="item2" action="" method="post">
<p>Item 2</p>
<input type="submit" name="add-cart" class="add-cart" value="Add to cart">
<input type="hidden" name="prodID" value="2">
</form>
<form id="item3" action="" method="post">
<p>Item 3</p>
<input type="submit" name="add-cart" class="add-cart" value="Add to cart">
<input type="hidden" name="prodID" value="3">
</form>
<form id="item4" action="" method="post">
<p>Item 4</p>
<input type="submit" name="add-cart" class="add-cart" value="Add to cart">
<input type="hidden" name="prodID" value="4">
</form>
</section>
</body>
<?php
if(isset($_POST["submit"])){
$item=$_POST["prodID"];
echo "hello";
}
?>