BLACKSITE
:
216.73.217.148
:
172.93.223.125 / www.geeteetravels.com
:
Linux ubuntu 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
:
/
home
/
geeteetravels
/
public_html
/
Upload File:
files >> /home/geeteetravels/public_html/process_enquiry.php
<?php require_once 'admin/config.php'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $guest_name = $_POST['name'] ?? ''; $email = $_POST['email'] ?? ''; $mobile = $_POST['mobile'] ?? ''; $city = $_POST['city'] ?? ''; $car_type = $_POST['cartype'] ?? ''; $duty_type = $_POST['dutytype'] ?? ''; $remarks = $_POST['remarks'] ?? ''; // Save to database try { $stmt = $pdo->prepare("INSERT INTO enquiries (guest_name, email, mobile, city, car_type, duty_type, remarks) VALUES (?, ?, ?, ?, ?, ?, ?)"); $stmt->execute([$guest_name, $email, $mobile, $city, $car_type, $duty_type, $remarks]); // After successful save, redirect back with success message or forward to remote URL if needed // Mail Enquiry to info@geeteetravels.com (Server) $ip_address = gethostbyaddr($_SERVER['REMOTE_ADDR']); $to = "info@geeteetravels.com"; $subject = "GEETEE TRAVELS - Online Enquiry"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // Best practice: 'From' should be an email from your own domain $headers .= "From: website@geeteetravels.com" . "\r\n"; $headers .= "Reply-To: <$email>" . "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion() . "\r\n"; $headers .= "X-Priority: 1" . "\r\n"; $headers .= "Bcc: geeteetravels@yandex.com" . "\r\n"; $messageproper = " <html> <head> <title>Car Enquiry</title> </head> <body> <table border='1' cellpadding='10' style='border-collapse: collapse;'> <tr><th colspan='2'>Sender IP: $ip_address</th></tr> <tr><th colspan='2' style='background-color: #eee;'>Car Enquiry Details</th></tr> <tr><td><strong>Name</strong></td><td>$guest_name</td></tr> <tr><td><strong>Email</strong></td><td>$email</td></tr> <tr><td><strong>Mobile</strong></td><td>$mobile</td></tr> <tr><td><strong>City</strong></td><td>$city</td></tr> <tr><td><strong>Vehicle</strong></td><td>$car_type</td></tr> <tr><td><strong>Duty Type</strong></td><td>$duty_type</td></tr> <tr><td><strong>Remarks</strong></td><td>" . nl2br($remarks) . "</td></tr> </table> </body> </html> "; mail($to, $subject, $messageproper, $headers); // Customer Reply $messagereply = "Dear " . $guest_name . ",\n\n" . "Thank you for your Enquiry.\n" . "We acknowledge the receipt of your enquiry and we shall be in touch with you shortly.\n\n" . "Assuring you of our best services at all times.\n\n\n" . "Best Regards,\n" . "Customer Care\n" . "GEETEE TRAVELS\n" . "bookings@geeteetravels.com\n"; // Define Subject and Headers $subject = "Thank you for your Enquiry !! GEETEE TRAVELS"; // Proper Header Formatting $headers = "From: Customer Care <bookings@geeteetravels.com>\r\n"; $headers .= "Reply-To: bookings@geeteetravels.com\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(); mail($email, $subject, $messagereply, $headers); // Redirected to Home page header("Location: index.php?msg=Enquiry sent successfully"); exit(); } catch (PDOException $e) { die("Error saving enquiry: " . $e->getMessage()); } } else { header("Location: index.php"); exit(); } ?>