-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorder.php
More file actions
110 lines (103 loc) · 3.77 KB
/
order.php
File metadata and controls
110 lines (103 loc) · 3.77 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
require 'config.php';
if(isset($_GET['id'])){
$id=$_GET['id'];
$sql="SELECT * FROM product WHERE product_id='$id'";
$result=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($result);
$pname=$row['product_name'];
$pprice=$row['product_price'];
$pimage=$row['product_image'];
$pdetail=$row['product_details'];
}
else{
echo 'No product found!';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="Hritik">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width-device-width, initial-scale=1, shrink-to-fit=no">
<title>Complete Your Order</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-md bg-dark navbar-dark">
<!-- Brand -->
<a class="navbar-brand" href="#">SecureWeb</a>
<!-- Toggler/collapsibe Button -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Navbar links -->
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="home.php">Home</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-10 mb-5">
<h2 class="text-center p-2 text-primary">Fill the user requirement to complete your order</h2>
<h3>Package Details : </h3>
<table class="table table-bordered" width="500px">
<tr>
<th>Package Name : </th>
<td><?= $pname; ?></td>
<td rowspan="4" class="text-center"><img src="<?= $pimage; ?>" width="200"></td>
</tr>
<tr>
<th>Package Price : </th>
<td>Rs. <?= number_format($pprice); ?>/-</td>
</tr>
<tr>
<th>Package Details : </th>
<td> <?= $pdetail; ?> </td>
</tr>
<tr>
</tr>
</table>
<h4>Enter your Requirement for Analysis </h4>
<form action="data.php" method="post" accept-charset="UTF-8">
<input type="hidden" name="product_name" value="<?= $pname; ?>">
<input type="hidden" name="product_price" value="<?= $pprice; ?>">
<div class="form-group">
<input type="text" name="name" class="form-control" placeholder="Enter your name" required>
</div>
<div class="form-group">
<input type="text" name="email" class="form-control" placeholder="Enter your Address" required>
</div>
<div class="form-group">
<input type="tel" name="phone" class="form-control" placeholder="Enter your phone number" required>
</div>
<div class="form-group">
<input type="text" name="url" class="form-control" placeholder="Enter your Website URL" required>
</div>
<div class="form-group">
<input type="text" name="ip" class="form-control" placeholder="Enter your IP Address" required>
</div>
<div class="form-group">
<input type="text" name="info" class="form-control" placeholder="Describe your Website" required>
</div>
<div class="form-group">
<input type="text" name="requirement" class="form-control" placeholder="Enter your user requirement" required>
</div>
<div class="form-group">
<input type="submit" name="submit" class="btn btn-danger btn-lg" value="Submit">
</div>
</form>
</form>
</div>
</div>
</div>
</body>
</html>