-
Notifications
You must be signed in to change notification settings - Fork 0
/
book.php
180 lines (154 loc) · 7.08 KB
/
book.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?php
$username="root";
$database="s_cubedb";
$servername="localhost";
$password="";
$conn = mysqli_connect($servername, $username, $password, $database);
if(isset($_POST['submit']))
{
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$address = $_POST['address'];
$nationality = $_POST['nationality'];
$tour = $_POST['tour'];
$adults = $_POST['adults'];
$child = $_POST['child'];
$datefrom = $_POST['datefrom'];
$dateto = $_POST['dateto'];
$passport = $_POST['passport'];
$stay = $_POST['stay'];
$days = $_POST['days'];
$remark = $_POST['remark'];
$sql = "INSERT INTO `s_cubedb`.`booking` (`name`, `phone`, `email`, `address`, `nationality`, `tour`, `adults`, `child`, `datefrom`, `dateto`, `passport`, `stay`, `days`, `remark`) VALUES ('".$name."','".$phone."','".$email."','".$address."','".$nationality."','".$tour."','".$adults."','".$child."','".$datefrom."','".$dateto."','".$passport."','".$stay."','".$days."' ,'".$remark."')";
$retval = mysqli_query( $conn, $sql );
}
?>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<title>S_cube tours & travels</title>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-grid.css">
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
body {
color: #566787;
background: #f5f5f5;
font-family: "Open Sans", sans-serif;
}
</style>
</head>
<body>
<!-- navbar -->
<nav class="navbar navbar-expand-lg navbar-expand-md navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="" alt="S_Cubelogo" style="width:40px;">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarToggler">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="services.html">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="packages.html">Packages</a>
</li>
<li class="nav-item">
<a class="nav-link" href="aboutus.html">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contactus.php">Contact us</a>
</li>
</ul>
</div>
</nav>
<!-- nav ends -->
<br>
<div class="card text-success border-success mb-3 mx-auto" style="max-width: 30rem; height: 30rem;">
<div class="card-header "><h3><center>Success!!!</center></h3></div>
<div class="card-body bg-light">
<h5 class="card-title text-success">Thanks for filling out our form!</h5>
<p class="card-text">We will look over your message and get back to you shortly.
If your inquiry is urgent, please use the telephone number listed below to talk to one of our staff members. Otherwise, we will reply by email as soon as possible.</p>
<form action="index.html">
<button type="submit" value="go to home" class="btn btn-secondary">Secondary</button>
</form>
</div>
</div><br>
<!--------------------------------------------footer----------------------------------------------------->
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<!-- Footer -->
<footer class="pt-5 pb-4 bg-light top-marg" id="contact">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-6 mt-2 mb-4">
<h5 class="mb-4 font-weight-bold">ABOUT US</h5>
<p class="mb-4">S_Cube tours Pvt. Ltd is a leading provider of travel related services and offer tour packages.</p>
<ul class="f-address">
<li>
<div class="row">
<div class="col-1"><i class="fas fa-map-marker"></i></div>
<div class="col-10">
<h6 class="font-weight-bold mb-0">Address:</h6>
<p>Andheri west Mumbai 400102 maharashtra</p>
</div>
</div>
</li>
<li>
<div class="row">
<div class="col-1"><i class="far fa-envelope"></i></div>
<div class="col-10">
<h6 class="font-weight-bold mb-0">Have any questions?</h6>
<p><a href="#">Support@S_cube.com</a></p>
</div>
</div>
</li>
<li>
<div class="row">
<div class="col-1"><i class="fas fa-phone-volume"></i></div>
<div class="col-10">
<h6 class="font-weight-bold mb-0"></h6>
<p><a href="#">+91-9768011041</a></p>
</div>
</div>
</li>
</ul>
</div>
<div class="col-lg-3 col-md-6 col-sm-6 mt-2 mb-4">
<h5 class="mb-4 font-weight-bold">         CONNECT WITH US</h5>
<ul class="social-pet mt-4">
<li><a href="https://www.facebook.com/" title="facebook" target="blank"><i class="fab fa-facebook-f"></i></a></li>
<li><a href="https://www.twitter.com" title="twitter" target="blank"><i class="fab fa-twitter"></i></a></li>
<li><a href="https://www.aboutme.google.com" title="google-plus" target="blank"><i class="fab fa-google-plus-g"></i></a></li>
<li><a href="https://www.instagram.com" title="instagram" target="blank"><i class="fab fa-instagram"></i></a></li>
</ul>
</div>
</div>
</div>
</footer>
<!-- Copyright -->
<section class="copyright">
<div class="container">
<div class="row">
<div class="col-md-12 ">
<div class="text-center text-white">
© 2019 S_cube All Rights Reserved.
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>