PK

ADDRLIN : /home/questend/public_html/domains/serenatravels.in/
FLL :
Current File : /home/questend/public_html/domains/serenatravels.in/contact.php

<?php
   include_once 'functions.php';
   $function = new FUNCTIONS();
   
   if (isset($_POST['contactus'])) {
       // print_r($_POST); exit;
       $to = "info@serenatravels.com";
       //$to = "indusinfotek@gmail.com";
       $name = !empty($_POST['name']) ? trim($_POST['name']) : "";
       $email = !empty($_POST['email']) ? trim($_POST['email']) : "";
       $query = !empty($_POST['query']) ? trim($_POST['query']) : "";
       $phone = !empty($_POST['phone']) ? trim($_POST['phone']) : "";
       $message = !empty($_POST['message']) ? trim($_POST['message']) : "";
       $errormsg = "";
       $subject = "Serena Travels Contact Us Enquiry";
   
        if (!empty($email)) {
            $messagebody='<table cellpadding="0" cellspacing="0" style="width:600px; margin:0px auto; color:#7b7b7c; vertical-align:middle; font-family:Arial, Helvetica, sans-serif; font-size:16px;">
                 <tr>
                   <td style="text-align:center;"><a href="#"><img src="" /></a></td>
                 </tr>
                 <tr>
                   <td>&nbsp;</td>
                 </tr>
                 <tr>
                   <td style="color:#333;"><strong>Hi, Admin</strong></td>
                 </tr>
                 <tr>
                   <td>&nbsp;</td>
                 </tr>
                 <tr>
                   <td>You have been received a enquiry.</td>
                 </tr>
                 </table>
                 <table cellpadding="0" cellspacing="0" style="width:600px; margin:0px auto; color:#7b7b7c; vertical-align:top; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:22px;">
                 <tr>
                   <td>&nbsp;</td>
                 </tr>
                 <tr>
                   <td style="color:#333;" colspan="3"><strong>Contact Details</strong></td>
                 </tr>
                 <tr>
                   <td>&nbsp;</td>
                 </tr>
                   <tr>
                     <td width="200px;">Name</td>
                     <td width="20px;">:</td>
                     <td width="380px;">'.$name.'</td>
                   </tr>
                   <tr>
                     <td width="200px;">Email Address</td>
                     <td width="20px;">:</td>
                     <td width="380px;">'.$email.'</td>
                   </tr>
                   <tr>
                     <td width="200px;">Mobile Number</td>
                     <td width="20px;">:</td>
                     <td width="380px;">'.$phone.'</td>
                   </tr>
                   <tr>
                     <td width="200px;">Subject</td>
                     <td width="20px;">:</td>
                     <td width="380px;">'.$query.'</td>
                   </tr>
                   <tr>
                     <td width="200px;">Message</td>
                     <td width="20px;">:</td>
                     <td width="380px;">'.$message.'</td>
                   </tr>          
                 </table>';
            $mailSent = $function->sendMail($to=$to,$subject=$subject,$messagebody=$messagebody); 
                 //sendmail($name,$from,$to,$contactmail);
                 if($mailSent == true) {
                     $errormsg = "Message Sent successfully";
                 }else {
                     $errormsg = "Message could not be sent. try again after sometime.";
                 }  
                           
        } else {
            $errormsg = "Message could not be sent. try again after sometime.";
        }
   }
?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8" />
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
      <meta name="title" content="Affordable and Reliable Car Rental Services | Serena Travels">
      <meta name="description" content="SDiscover the best car rental experience with Serena Travels. Offering affordable rates, a wide range of vehicles, and exceptional customer service, we ensure your journey is smooth and hassle-free. Book your rental car today!">
      <title>Serena Travels - Car Rental Service</title>
      <?php include_once'layout/stylesheet.php'; ?>
   </head>
   <body>
      <a class="whats-app" href="https://api.whatsapp.com/send?phone=919910032125&text=Hello" target="_blank">
        <i class="fab fa-whatsapp my-float"></i>
      </a>
      <!-- Preloader -->
      <div id="preloader">
         <div class="loader">
            <svg
               class="wheel"
               version="1.1"
               id="Capa_1"
               xmlns="http://www.w3.org/2000/svg"
               xmlns:xlink="http://www.w3.org/1999/xlink"
               viewBox="0 0 254.532 254.532"
               xml:space="preserve"
               >
               <g>
                  <path
                     id="tire"
                     d="M127.267,0C57.092,0,0,57.091,0,127.266s57.092,127.266,127.267,127.266c70.174,0,127.266-57.091,127.266-127.266
                     S197.44,0,127.267,0z M127.267,217.656c-49.922,0-90.391-40.468-90.391-90.39s40.469-90.39,90.391-90.39
                     c49.92,0,90.39,40.468,90.39,90.39S177.186,217.656,127.267,217.656z"
                     ></path>
                  <path
                     id="rim"
                     d="M127.267,48.578c-43.39,0-78.689,35.299-78.689,78.688c0,43.389,35.3,78.688,78.689,78.688
                     c43.389,0,78.688-35.299,78.688-78.688C205.955,83.877,170.655,48.578,127.267,48.578z M195.878,122.249h-38.18
                     c-0.78-4.825-2.686-9.275-5.435-13.079l26.954-26.954C188.679,93.112,194.771,106.996,195.878,122.249z M132.204,58.648
                     c15.244,1.087,29.123,7.156,40.025,16.591l-26.948,26.949c-3.804-2.748-8.253-4.653-13.077-5.433V58.648z M122.329,58.648v38.106
                     c-4.824,0.78-9.274,2.685-13.078,5.434L82.302,75.24C93.204,65.805,107.085,59.735,122.329,58.648z M75.313,82.217l26.955,26.954
                     c-2.749,3.803-4.654,8.253-5.434,13.077h-38.18C59.761,106.996,65.853,93.113,75.313,82.217z M58.643,132.123h38.192
                     c0.779,4.824,2.685,9.274,5.434,13.078l-27.029,27.029C65.788,161.308,59.714,147.398,58.643,132.123z M122.329,195.884
                     c-15.285-1.09-29.197-7.188-40.113-16.666l27.035-27.035c3.804,2.749,8.254,4.654,13.078,5.434V195.884z M122.329,147.459v0.072
                     c-2.131-0.518-4.131-1.36-5.953-2.474l0.047-0.047c-2.85-1.738-5.244-4.132-6.982-6.983l-0.046,0.046
                     c-1.114-1.822-1.956-3.821-2.474-5.952h0.071c-0.385-1.585-0.611-3.233-0.611-4.937c0-1.704,0.227-3.352,0.611-4.937h-0.071
                     c0.518-2.13,1.359-4.129,2.474-5.951l0.046,0.046c1.738-2.85,4.133-5.245,6.982-6.982l-0.047-0.047
                     c1.822-1.114,3.822-1.957,5.953-2.474v0.072c1.586-0.385,3.233-0.612,4.938-0.612s3.352,0.227,4.938,0.612v-0.072
                     c2.131,0.518,4.13,1.359,5.951,2.473l-0.047,0.047c2.851,1.737,5.245,4.132,6.983,6.982l0.046-0.046
                     c1.115,1.822,1.957,3.822,2.475,5.953h-0.071c0.385,1.585,0.611,3.233,0.611,4.937c0,1.704-0.227,3.352-0.611,4.937h0.071
                     c-0.518,2.131-1.359,4.131-2.475,5.953l-0.046-0.046c-1.738,2.85-4.133,5.244-6.983,6.982l0.047,0.046
                     c-1.821,1.114-3.82,1.956-5.951,2.474v-0.072c-1.586,0.385-3.233,0.612-4.938,0.612S123.915,147.845,122.329,147.459z
                     M132.204,195.884v-38.267c4.824-0.78,9.273-2.685,13.077-5.433l27.034,27.034C161.4,188.696,147.488,194.794,132.204,195.884z
                     M179.292,172.23l-27.028-27.028c2.749-3.804,4.654-8.254,5.435-13.079h38.191C194.818,147.398,188.745,161.308,179.292,172.23z"
                     ></path>
               </g>
            </svg>
            <div class="road"></div>
         </div>
      </div>
      <!-- Back To Top Start -->
      <a href="#main-wrapper" id="backto-top" class="back-to-top">
        <i class="fas fa-angle-up"></i>
      </a>
      <!-- Main Wrapper Start -->
      <div id="main-wrapper" class="main-wrapper overflow-hidden">
         <!-- Header Area Start -->
         <?php $currentPage = 'contact'; include_once'layout/header.php'; ?>
         <!-- Header Area end -->
         <!-- carousel -->
         <div id="carouselExampleIndicators" class="carousel slide carousel-fade mb-2" data-ride="carousel" style="height: 50%;">
            <ol class="carousel-indicators">
               <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
               <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
               <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
            </ol>
            <div class="carousel-inner">
               <div class="carousel-item active">
                  <img class="d-block w-100 " src="assets/media/pixel1.jpg" alt="First slide">
               </div>
            </div>
         </div>
         <!-- carousel end -->
         <!-- contact Area start -->
         <div class="contact p-100">
            <div class="container">
               <div class="row">
                  <div class="col-xxl-5 col-12">                     
                     <?php if (!empty($errormsg)) { ?>
                     <div class="alert alert-success alert-dismissible fade show" role="alert" id="msgdiv">
                       <strong><?=$errormsg;?></strong> 
                       <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                     </div>
                     <?php } ?>
                     <div class="contact-block mb-xxl-0 mb-24">
                        <h2>Let's Connect, Reach Out to Serena Travels</h2>
                        <p>
                           Have a question, need assistance, or ready to make a booking?
                           We're here to help. Use the contact information or fill out
                           the form below to get in touch with Serena Travels.
                        </p>
                        <form method="post" action="" id="contactusfrm">
                           <div class="row">
                              <div class="col-lg-6 col-12">
                                 <div class="form-group mb-24">
                                    <input type="text" class="form-control" id="name"
                                       name="name" required placeholder="Your Name" />
                                 </div>
                              </div>
                              <div class="col-lg-6 col-12">
                                 <div class="form-group mb-24">
                                    <input type="email" class="form-control" id="email" name="email" required placeholder="Email" />
                                 </div>
                              </div>
                              <div class="col-lg-6 col-12">
                                 <div class="form-group mb-24">
                                    <input type="text" class="form-control" id="topic" name="query" required placeholder="Subject" />
                                 </div>
                              </div>
                              <div class="col-lg-6 col-12">
                                 <div class="form-group mb-24">
                                    <input type="tel" class="form-control"
                                       id="phone" name="phone" required
                                       placeholder="Your Phone" />
                                 </div>
                              </div>
                              <div class="col-12">
                                 <div class="form-group mb-48">
                                    <textarea class="form-control" required name="message" placeholder="Your Message"></textarea>
                                 </div>
                              </div>
                           </div>
                           <div class="text-center">
                              <button type="submit" name="contactus" class="dark-btn w-90">
                              Send Message
                              </button>
                           </div>
                           <div id="message" class="alert-msg"></div>
                        </form>
                     </div>
                  </div>
                  <div class="col-xxl-7 col-12">
                     <div class="info-block">
                        <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14034.558616812636!2d77.0273963!3d28.4301281!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390d170850eb521d%3A0xc4e5a08226fd794!2sSerena%20Travels!5e0!3m2!1sen!2sin!4v1716813083231!5m2!1sen!2sin" width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <!-- contact Area end -->
         <!-- footer Area start -->
         <?php include_once'layout/footer.php'; ?>
         <!-- footer Area end -->
      </div>
      <!-- Jquery Js -->
      <?php include_once'layout/script.php'; ?>

      <script type="text/javascript">
         $("#contactusfrm").validate({
         rules: {   
             name: {
                 required: true
             },
             phone: {
                  required: true,
                  minlength: 10,
                  maxlength: 10,
                  //number: true
                  digits: true
             },
             email: {
                 required: true,
                 email: true,
             },             
             query: {
                 required: true,
             },
             messages: {
                 required: true,
             }
         },
         messages: {                           
             name: {
                 required: "Please enter your name"
             },
             phone: {
                 required: "Please enter mobile No",
                 minlength: "Mobile No Must Contain at least 10 digit",
                 maxlength: "Mobile No Must Not Exceed 10 digit",
                 digits: "Please enter only digit"
             },
             email: {
                 required: "Please enter email",
                 email: "Please enter valid email"
             },             
             query: {
                 required: "Please enter subject"
             },
             messages: {
                 required: "Please enter messages"
             }
         },
         submitHandler: function(form) { 
           $(form).find('button[type="submit"]').prop('disabled', true);
           $(form).find('button[type="submit"]').text('Please wait..', true);
           form.submit();
         }   
       });
    </script>
    <script type="text/javascript">
       setTimeout(function () {
          document.getElementById("msgdiv").classList.add('hide');
       }, 9000);
    </script>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home