hjkhhrtertererrrrrerrtertertertertertertert
bnmbnerterterterterterdfgdfgdfgdfgdfgdfgdfgdfgdfg
/
home4
/
digil8bw
/
nishaadresorts.com
/
Upload FileeE
HOME
<?php ob_start(); include("configuration/function-include.php"); include('include/header.php'); ?> <body> <div id="smoothpage" class="wrapper"> <div class="top_menu"> <div class="container"> <div class="welcome_mssg hidden-xs"> Welcome to Nishaad Resorts </div> <ul class="top_menu_right"> <li><i class="fa fa-phone"></i><a href="tel:+91 9418021707"> +91 9418021707 </a></li> <li class="email"><i class="fa fa-envelope-o "></i> <a href="mailto:info@hotelnishaadresorts.com">info@hotelnishaadresorts.com</a> </li> </ul> </div> </div> <header class="fixed"> <?php include('include/menu.php'); ?> </header> <div> <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d13496.79500296608!2d76.3034364!3d32.2527343!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x52f5f080cd3d5b7e!2sNishaad%20Resorts%2CNaddi%2C%20Dharamshala!5e0!3m2!1sen!2sin!4v1626434002992!5m2!1sen!2sin" width="100%" height="400" style="border:0;" allowfullscreen="" loading="lazy"></iframe> </div> <div id="map-canvas"></div> </div> <br> <br> <main id="contact_page"> <div class="container"> <div class="row"> <div class="col-md-8"> <div class="main_title a_left"> <h2>CONTACT US</h2> </div> <form id="contact-form-page" enctype="multipart/form-data" method="post"> <div class="row"> <div class="form-group col-md-6 col-sm-6"> <label class="control-label">Name</label> <input type="text" class="form-control" name="name" placeholder="Your Name"> </div> <div class="form-group col-md-6 col-sm-6"> <label class="control-label">Phone</label> <input type="text" class="form-control" name="phone" placeholder="Phone"> </div> <div class="form-group col-md-6 col-sm-6"> <label class="control-label">Email</label> <input type="email" class="form-control" name="emailid" placeholder="Your Email"> </div> <div class="form-group col-md-6 col-sm-6"> <label class="control-label">Subject</label> <input type="text" class="form-control" name="subject" placeholder="Subject"> </div> <div class="form-group col-md-12"> <label class="control-label">Message</label> <textarea class="form-control" name="message" placeholder="Your Message..."></textarea> </div> <div class="form-group col-md-12"> <button type="submit" class="button btn_blue mt40 upper pull-right"> <i class="fa fa-paper-plane-o" aria-hidden="true"></i> Send Your Message </button> </div> </div> </form> </div> <div class="col-md-4"> <div class="main_title a_left"> <h2>GET IN TOUCH</h2> </div> <ul class="contact-info upper"> <li> <span>ADDRESS:</span> Nishaad Resorts, Naddi Upper Dharamshala , Distt Kangra ,Himachal Pradesh India Pin 176216 </li> <li> <span>EMAIL:</span><a href="mailto:info@hotelnishaadresorts.com">info@hotelnishaadresorts.com</a> </li> <li> <span>WEB:</span> www.nishaadresorts.com </li> <li> <span>PHONE:</span> +91 <strong>9418021707</strong> , +91 <strong> 01892 21707</strong> </li> </ul> <div class="social_media"> <a class="facebook" href="https://www.facebook.com/nishaadresorts/"><i class="fa fa-facebook"></i></a> <a class="twitter" href="https://twitter.com/NishaadR"><i class="fa fa-twitter"></i></a> <a class="instagram" href="https://www.instagram.com/nishaadresorts/"><i class="fa fa-instagram"></i></a> <a class="tripadvisor" href="https://www.tripadvisor.in/Hotel_Review-g319724-d1585578-Reviews-Nishaad_Resorts-Dharamsala_Kangra_District_Himachal_Pradesh.html"><i class="fa fa-tripadvisor"></i></a> </div> </div> </div> </div> </main> <?php include('include/footer.php'); ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script> <?php if(!empty($_POST['emailid'])){ $sql_insert = "insert into sh_contact_enquiry set name = '".$_REQUEST['name']."', phone = '".$_REQUEST['phone']."', emailid = '".$_REQUEST['emailid']."', subject = '".$_REQUEST['subject']."', insert_date = '".date("Y-m-d h:i:sa")."', status = '1'"; $query_insert = mysqli_query($conn, $sql_insert); $_SESSION['msg'] = "New record added successfully."; $to='vijay@asciitechsolution.com'; $subject = 'New Query Received'; $message = "<h3>A new query has been received, details are as follows:</h3> <p>Name: ".$_POST['name']."</p> <p>Phone Number: ".$_POST['phone']."</p> <p>Email: ".$_POST['emailid']."</p> <p>Message: ".$_POST['subject']."</p> <h5>Thanks, </h5> <h5>Nishaad</h5> "; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // Additional headers $headers .= 'From: Nishaad<contact@nishaad.in>' . "\r\n"; if (mail($to, $subject, $message , $headers)) { echo ' <script type="text/javascript"> $(document).ready(function(){ swal("Message sent!", "", "success"); }); </script> '; exit; } else { echo ' <script type="text/javascript"> $(document).ready(function(){ swal("Oops...", "Something went wrong :(", "error"); }); </script> '; exit; } } ?> </body> </html>