-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.php
executable file
·76 lines (63 loc) · 2.57 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
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
<?php
session_start();
extract($_POST);
extract($_SESSION);
require('includes/config.php');
//echo $uid;
if(isset($submit))
{
$query="insert into shipping_details(name,address,postal_code,city,state,phone,f_id) values('$name','$address','$pc','$city','$state','$phone','$uid')";
$res=mysqli_query($conn,$query) or die("Can't Execute Query...");
header("location:payment_details.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
include("includes/head.inc.php");
?>
</head>
<body>
<!-- start header -->
<div id="header">
<div id="menu">
<?php
include("includes/menu.inc.php");
?>
</div>
</div>
<div id="logo-wrap">
<div id="logo">
<?php
include("includes/logo.inc.php");
?>
</div>
</div>
<!-- end header -->
<!------------------------------->
<font style="font-size:30px;margin-left:420px">Shipping Details</font>
<div class="container">
<!-- freshdesignweb top bar -->
<div class="freshdesignweb-top">
<div class="clr"></div>
</div><!--/ freshdesignweb top bar -->
<div class="form">
<form id="contactform" method="post">
<p class="contact"><label for="name">Name</label></p>
<input id="name" name="name" placeholder="First and last name" required="" tabindex="1" type="text">
<p class="contact"><label for="email">Address</label></p>
<textarea id="address" name="address" placeholder="Address" required="" cols="55" row="10"type="email"> </textarea>
<p class="contact"><label for="username">Postal Code</label></p>
<input id="pc" name="pc" placeholder="201001" required="" tabindex="2" type="text">
<p class="contact"><label for="city">City</label></p>
<input type="text" id="city" name="city" required="" placeholder="delhi">
<p class="contact"><label for="state">State</label></p>
<input type="text" id="state" name="state" required="" placeholder="delhi">
<p class="contact"><label for="phone">Mobile phone</label></p>
<input id="phone" name="phone" placeholder="phone number" required="" type="text"> <br>
<input class="buttom" name="submit" id="submit" tabindex="5" value="Confirm & Proceed" type="submit">
</form>
</div>
</div>
</body>