-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.php
33 lines (30 loc) · 1.19 KB
/
checkout.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
<?php
session_start();
if(!isset($_SESSION['user_session'])){
header("location:index.php");
}
?>
<html>
<head>
<title>Checkout</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="checkout">
<form method="post" action="preview.php?invoice_number=<?php echo $_GET['invoice_number']?>">
<center>
<h3>Check Out</h3>
<input type="hidden" name="medicine_name" value="<?php echo $_GET['medicine_name']?>">
<input type="hidden" name="category" value="<?php echo $_GET['category']?>">
<input type="hidden" name="quantity" value="<?php echo $_GET['quantity']?>">
<input type="hidden" name="grand_total" value="<?php echo $_GET['total']?>">
<input type="hidden" name="grand_profit" value="<?php echo $_GET['profit']?>">
<input type="hidden" name="date" value="<?php echo date("Y/m/d");?>">
<input type="number" name="paid_amount" autocomplete="off" placeholder="Paid Amount" style="width: 300px; height:30px; margin-bottom: 15px;" required/><br>
<button class="btn btn-success btn-block btn-large" name="submit" style="border-radius: 15px;">Submit</button>
</center>
</form>
</div>
</body>
</html>
<!-- For more projects: Visit codeastro.com -->