MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.147.36.106
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/indiatourbus.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/indiatourbus.com/contact.php
<?php
    require_once('admin/config.php');
    if($_SERVER["REQUEST_METHOD"] == "POST"){
        if(isset($_POST["submit"])){
            $name = $_POST["name"];
            $phone = $_POST["phone"];
            $email = $_POST["email"];
            $subject_mesg = $_POST["subject"];
            $message = $_POST["message"];
            
            $sql = "INSERT INTO `tbl_queries` (name, phone, email, subject, message)
                    VALUES('$name','$phone','$email','$subject_mesg','$message')";
            $run = mysqli_query($db,$sql);
            
            if($run){
                $to = "info@indiatourbus.com";
                $subject = "New Query Submitted";
                $emailMessage = "A new query has been submitted:\n\n";
                $emailMessage .= "Name: $name\n";
                $emailMessage .= "Phone: $phone\n";
                $emailMessage .= "Email: $email\n";
                $emailMessage .= "Subject: $subject_mesg\n";
                $emailMessage .= "Message: $message\n";
                
                $headers = "From: $email";
                
                if (mail($to, $subject, $emailMessage, $headers)) {
                echo "<script>
                window.alert('Successfully Sent! We will contact you soon');
                window.location.href = '$wspath' + 'contact.html';
                </script>";
            }else{
                echo "<script>
                 window.alert('Query Unsuccessfull! Try Aftersome Time.');
                 window.location.href = '$wspath' + 'contact.html';
                 </script>";
            }
        }else{
            echo "<script>
                 window.alert('Error');
                 window.location.href = '$wspath' + 'contact.html';
                 </script>";
        }
    }
    }

?>

<!doctype html>
<html lang="en">


<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php include "links.php";?>
    <title><?php echo $datacontact['site_pages_meta_title'];?></title>
    <meta name="description" content="<?php echo $datacontact["site_pages_meta_description"];?>">
</head>

<body>

    <?php include "header.php";?>
    
    <?php include "marquee.php";?>

    <div class="breadcrumb breadcrumb-style-one">
        <div class="container">
            <div class="col-lg-12 text-center">
                <h2 class="breadcrumb-title">Contact Us</h2>
                <ul class="d-flex justify-content-center breadcrumb-items">
                    <li class="breadcrumb-item"><a href="<?= $wspath;?>">Home</a></li>
                    <li class="breadcrumb-item active">Contact Us</li>
                </ul>
            </div>
        </div>
    </div>


    <div class="contact-wrapper pt-100">
        <div class="container">
            <div class="row align-items-center justify-content-lg-center gy-5">
                <div class="col-lg-6">
                    <form action="<?php $_PHP_SELF ?>" method="POST" id="contact_form">
                        <div class="contact-form-wrap">
                            <h4>Get a free quote now</h4>
                            <p>Your email address will not be published. Required fields are marked *</p>
                            <div class="row">
                                <div class="col-lg-6">
                                    <div class="custom-input-group">
                                        <label for="name">Name</label>
                                        <input type="text" placeholder="Your name" id="name" name="name" required>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="custom-input-group">
                                        <label for="name">Phone No</label>
                                        <input type="text" placeholder="Your Number" id="name" name="phone" min="10" required>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="custom-input-group">
                                        <label for="email">Email</label>
                                        <input type="email" placeholder="Your Email" id="email" name="email" required>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="custom-input-group">
                                        <label for="email">Subject</label>
                                        <input type="text" placeholder="Subject" id="email" name="subject" required>
                                    </div>
                                </div>
                            </div>
                            <div class="custom-input-group">
                                <textarea cols="20" rows="7" placeholder="Your message" name="message" required></textarea>
                            </div>
                            <div class="custom-input-group">
                                <div class="submite-btn">
                                    <button type="submit" name="submit">Send Message</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="col-lg-5">
                    <div class="contact-info">
                        <h3>Contact Info.</h3>
                        <ul>
                            <li>
                                <h6>Let’s Talk</h6>
                                <a href="mailto:info@indiatourismincredible.com"><span class="__cf_email__">
                                    </span>
                                    info@indiatourismincredible.com</a>
                                <a href="#"><span class="__cf_email__">
                                    </span></a>
                                <a href="tel:+919643457009">+91-9643457009</a>
                            </li>
                            <li>
                                <h6>Loacation.</h6>
                                <a href="#">9198/5 Multani Dhanda, Paharganj Near Mourya Hotel New Delhi-110055</a>
                            </li>
                            <li>
                                <h6>Visit Us.</h6>
                                <a href="#">Facebook: https://www.facebook.com/egenslab</a>
                                <a href="#">Twitter: https://www.twitter.com/egenslab</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="container-fluid p-0">
            <div class="contact-map mt-120">
                <div class="mapouter">
                    <div class="gmap_canvas">
                    <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3501.376363188155!2d77.20803791508295!3d28.64844748241152!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390cfd690a9fb54d%3A0x59d631b561bc8765!2s9597%2C+Sardar+Thana+Rd%2C+Multani+Dhanda%2C+Sadar+Bazaar%2C+New+Delhi%2C+Delhi+110055!5e0!3m2!1sen!2sin!4v1507957277332" width="100%" height="300" frameborder="0" style="border:0" allowfullscreen=""></iframe>
                        <a
                            href="https://123movies-to.org/"></a><br>
                    </div>
                </div>
            </div>
        </div>

       
    </div>


    <?php include "footer.php";?>
</body>


</html>

MMCT - 2023