-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathquantity.php
More file actions
59 lines (52 loc) · 2 KB
/
quantity.php
File metadata and controls
59 lines (52 loc) · 2 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>
<title>Confirm Quantity</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100" >
<link rel="stylesheet" href="styles/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<form action="quantity.php" method="post">
<!--HEADLINE -->
<?php include "includes/header.php" ?>
<div id="content">
<div class="container">
<?php include "includes/sidebar.php" ?>
<div class="col-md-9">
<!-- WELCOME STRIP-->
<div class="row">
<div class="box">
<h1></h1>
<h4>
Product Details
</h4>
<p><?php echo $_GET['details'] ?></p>
</div>
</div>
<!-- ITEMS-->
<div class="row">
<div class="box">
<p><?php //include "controllers/add_cart_buy_now.controller.php"
echo $_GET['value']?></p>
<h3>Price: Rs <?php echo $price?></h3>
<h4> Enter desired quantity here</h4>
<p>Quantity: <input type="number" value="1" min="1" name="quantity" style="width: 50px" /> </p>
<p><input type="submit" value="Add To Cart" style="background-color:#8a00e6;color:white" > <a href="#" class="btn button3">Buy Now</a></p>
<?php
if(isset($_POST['quantity'])){
include('controllers/database.controller.php');
$sql="INSERT INTO cart (session_i_d,start_time,price) VALUES (NULL, CURRENT_TIMESTAMP, $price);";
echo ('quantity');
}
?>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>