-
Notifications
You must be signed in to change notification settings - Fork 0
/
paynow.php
70 lines (49 loc) · 1.97 KB
/
paynow.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PayMe</title>
<link rel="stylesheet" href="css/bootstrap.css">
</head>
<body>
<?php
include "database.php";
$db = new database();
$code = $_GET["product_code"];
$where = "code='$code'";
$db->select('products','*',null,$where,null,null);
$result = $db->getResult();
foreach($result as list("price"=>$price) ){
?>
<div class="container">
<div class="row justify-content-center">
<form action="payment.php" method="post">
<h1>Your Payment Amount is <?php echo $price."Rs" ?></h1>
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Example input" required hidden name="price" value="<?php echo $price ?>">
<div class="form-group">
<label for="formGroupExampleInput">Full Name</label>
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Enter your name" required name="name">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email" required name="email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="formGroupExampleInput">Mobile No</label>
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Enter your mobile no" required name="mobile">
</div>
<div class="form-group">
<label for="formGroupExampleInput">Address</label>
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Enter Your Address" required name="address">
</div>
<button type="submit" class="btn btn-primary" name="proceed_to_pay">Submit</button>
</form>
</div>
</div>
<?php
}
?>
</body>
</html>