-
Notifications
You must be signed in to change notification settings - Fork 0
/
orders_veiw.php
49 lines (33 loc) · 1.38 KB
/
orders_veiw.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:https://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>MotoRent.ru</title>
<?php include("reg/bd.php");?>
</head>
<body>
<?php
$moto=$_POST['moto'];
$pickupdate=$_POST['pickupdate'];
$pickuptime=$_POST['pickuptime'];
$pickuplocation=$_POST['pickuplocation'];
$dropoffdate=$_POST['dropoffdate'];
$dropofftime=$_POST['dropofftime'];
$dropofflocation=$_POST['dropofflocation'];
$helmet=$_POST['helmet'];
$trunk=$_POST['trunk'];
$cl=$_POST['cl'];
$insurance=$_POST['insurance'];
$sql = "INSERT INTO orders_veiw(moto,pickupdate, pickuptime, pickuplocation, dropoffdate, dropofftime, dropofflocation, helmet, trunk, motorcycleclothing, insurance) VALUES ('$moto','$pickupdate','$pickuptime','$pickuplocation','$dropoffdate','$dropofftime','$dropofflocation','$helmet','$trunk','$cl','$insurance')";
$orders = mysql_query($sql,$db);
if($orders == 'TRUE')
{
echo '<div style="color:black;font-size:17px;">Well Done.Your requst will be check by admin</div>';
}
else{
echo '<div style="color:black;font-size:17px;">Somethnig went wrong we could not process your request.<a href="index.php">Go back and try again</a></div>';
}
?>
</body>
</html>