|
1Server IP : 2a02:4780:11:1776:0:2637:29db:10 / Your IP : 216.73.217.24 Web Server : LiteSpeed System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64 User : u641149403 ( 641149403) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u641149403/domains/mistytourandtravel.in/../makemytourindia.com/public_html/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
include('smtp/PHPMailerAutoload.php');
//--------------- Quick Query -------------------
if(isset($_POST['pickup_address'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$cab_type = $_POST['cab_type'];
$pickup_address = $_POST['pickup_address'];
$drop_address = $_POST['drop_address'];
$pickup_date = $_POST['pickup_date'];
$pickup_time = $_POST['pickup_time'];
$html = '<html>
<head>
<title>Booking Details</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Email - </b></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Cab Type - </b></td>
<td>'.$cab_type.'</td>
</tr>
<tr>
<tr>
<td><b>Pickup Address - </b></td>
<td>'.$pickup_address.'</td>
</tr>
<tr>
<td><b>Drop Address - </b></td>
<td>'.$drop_address.'</td>
</tr>
<tr>
<td><b>Pickup Date - </b></td>
<td>'.$pickup_date.'</td>
</tr>
<tr>
<td><b>Pickup Time - </b></td>
<td>'.$pickup_time.'</td>
</tr>
</table>
</body>
</html>';
}
// ========Home Form booking==========
if(isset($_POST['contact_submit'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$message = $_POST['message'];
$html = '<html>
<head>
<title>Contact</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Email - </b></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Message - </b></td>
<td>'.$message.'</td>
</tr>
</table>
</body>
</html>';
}
// ========Home Form booking==========
if(isset($_POST['days_no'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$tour = $_POST['tour'];
$days_no = $_POST['days_no'];
$accomodation = $_POST['accomodation'];
$html = '<html>
<head>
<title>Tour</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Tour - </b></td>
<td>'.$tour.'</td>
</tr>
<tr>
<td><b>Number Of Days - </b></td>
<td>'.$days_no.'</td>
</tr>
<tr>
<td><b>Accomodation - </b></td>
<td>'.$accomodation.'</td>
</tr>
</table>
</body>
</html>';
}
// ========tour Form booking==========
if(isset($_POST['tour_booking'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$doa = $_POST['doa'];
$adults = $_POST['adults'];
$children = $_POST['children'];
$message = $_POST['message'];
$html = '<html>
<head>
<title>Contact</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Email - </b></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Date Of Arrival - </b></td>
<td>'.$doa.'</td>
</tr>
<tr>
<td><b>Adults - </b></td>
<td>'.$adults.'</td>
</tr>
<tr>
<td><b>Children - </b></td>
<td>'.$children.'</td>
</tr>
<tr>
<td><b>Message - </b></td>
<td>'.$message.'</td>
</tr>
</table>
</body>
</html>';
}
// ========tour Form booking==========
if(isset($_POST['send_query'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$query = $_POST['query'];
$adults = $_POST['adults'];
$children = $_POST['children'];
$html = '<html>
<head>
<title>Contact</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Email - </b></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Place To visit/Query - </b></td>
<td>'.$query.'</td>
</tr>
<tr>
<td><b>Adults - </b></td>
<td>'.$adults.'</td>
</tr>
<tr>
<td><b>Children - </b></td>
<td>'.$children.'</td>
</tr>
</table>
</body>
</html>';
}
// ========tour Form booking==========
if(isset($_POST['safari_booking'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$date = $_POST['date'];
$time = $_POST['time'];
$safarizone = $_POST['safarizone'];
$adults = $_POST['adults'];
$children = $_POST['children'];
$message = $_POST['message'];
$html = '<html>
<head>
<title>Safari Booking</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Email - </b></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Safari Date - </b></td>
<td>'.$date.'</td>
</tr>
<tr>
<td><b>Safari Time - </b></td>
<td>'.$time.'</td>
</tr>
<tr>
<td><b>Safari Zone - </b></td>
<td>'.$safarizone.'</td>
</tr>
<tr>
<td><b>Adults - </b></td>
<td>'.$adults.'</td>
</tr>
<tr>
<td><b>Children - </b></td>
<td>'.$children.'</td>
</tr>
<tr>
<td><b>Requirement - </b></td>
<td>'.$message.'</td>
</tr>
</table>
</body>
</html>';
}
if(isset($_POST['hotel_book'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$adults = $_POST['adults'];
$children = $_POST['children'];
$check_in_date = $_POST['check_in_date'];
$html = '<html>
<head>
<title>Contact</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Check In Date - </b></td>
<td>'.$check_in_date.'</td>
</tr>
<tr>
<td><b>Adults - </b></td>
<td>'.$adults.'</td>
</tr>
<tr>
<td><b>Children - </b></td>
<td>'.$children.'</td>
</tr>
</table>
</body>
</html>';
}
if(isset($_POST['check_out_date'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$adults = $_POST['adults'];
$children = $_POST['children'];
$no_of_room = $_POST['no_of_room'];
$check_in_date = $_POST['check_in_date'];
$check_out_date = $_POST['check_out_date'];
$message = $_POST['message'];
$html = '<html>
<head>
<title>Contact</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Check In Date - </b></td>
<td>'.$check_in_date.'</td>
</tr>
<tr>
<td><b>Check out Date - </b></td>
<td>'.$check_out_date.'</td>
</tr>
<tr>
<td><b>Adults - </b></td>
<td>'.$adults.'</td>
</tr>
<tr>
<td><b>Children - </b></td>
<td>'.$children.'</td>
</tr>
<tr>
<td><b>Number of Rooms- </b></td>
<td>'.$no_of_room.'</td>
</tr>
<tr>
<td><b>Message- </b></td>
<td>'.$message.'</td>
</tr>
</table>
</body>
</html>';
}
if(isset($_POST['jim_corbett'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$adults = $_POST['adults'];
$children = $_POST['children'];
$check_in_date = $_POST['check_in_date'];
$html = '<html>
<head>
<title>Contact</title>
<style>
table{
width: 100%;
margin-bottom: 1rem;
color: #212529;
border-collapse: collapse;
}
table td, table th {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6;
}
</style>
</head>
<body>
<table>
<tr>
<td><b>Name - </b></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><b>Phone Number - </b></td>
<td>'.$phone.'</td>
</tr>
<tr>
<td><b>Check In Date - </b></td>
<td>'.$check_in_date.'</td>
</tr>
<tr>
<td><b>Adults - </b></td>
<td>'.$adults.'</td>
</tr>
<tr>
<td><b>Children - </b></td>
<td>'.$children.'</td>
</tr>
</table>
</body>
</html>';
}
// -------- Mail storing & redirect to thankyou.php --------
if (!empty($html)) {
// Store HTML in session for thankyou.php
$_SESSION['background_mail'] = [
'html' => $html,
'timestamp' => time()
];
// Redirect immediately to thankyou.php
header("Location: thankyou.php");
exit;
} else {
// Form not processed correctly
echo "<h3>Debug Information</h3>";
echo "<pre>POST data: ";
print_r($_POST);
echo "</pre>";
echo "<p>HTML is empty. Form not processed correctly.</p>";
echo "<p>Make sure your form fields are filled correctly.</p>";
}
?>