File manager - Edit - /home/asiatechinc/public_html/asiatechinc-websites/hotelnewshradhakatra.com/contact.php
Back
<?php if(isset($_POST['formsubmit'])){ $url = 'https://www.google.com/recaptcha/api/siteverify'; $privatekey = '6LfHoMYqAAAAAPwRQ8ewrGRC9Ap71J2tBwiis7bA'; $response = file_get_contents($url."?secret=".$privatekey."&response=".$_POST['g-recaptcha-response']."&remoteip=".$_SERVER['REMOTE_ADDR']); $data = json_decode($response); if(isset($data->success) AND $data->success==true){ $name = strip_tags(trim($_POST["name"])); $email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL); $phone = trim($_POST["phone"]); $msg = trim($_POST["msg"]); $to = "hotelramatridentkatra@gmail.com"; $subject = "Website Query"; $headers = "From: Hotel New Shradha <support@asiatech.in>\r\n"; $headers .= "CC: info@ramatrident.com\r\n"; $headers .= "BCC: madhu@asiatech.in\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $email_content='<div style="border:3px solid 98bc6c; width:80%;display:block;margin: 0px auto;"><div> <span style="font-size:20pt;">Hotel New Shradha</span><br /> <span style="color:#FCAF17;font-size:15pt;">Enquiry Detail From Your Website</span><br /> <table cellspacing="0" style="width:100%;height:200px;"><tr style="background-color: #97BB6A;color:#fff;"><td colspan="2">The details are as follows.</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Customer Name</td><td style="border:1px solid #000000;padding:5px;">'.$name.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Email Id</td><td style="border:1px solid #000000;padding:5px;">'.$email.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Phone No</td><td style="border:1px solid #000000;padding:5px;">'.$phone.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Message</td><td style="border:1px solid #000000;padding:5px;">'.$msg.'</td></tr> </table><br>Thank you<br /> <span style="color:green;"><a href="http://www.asiatech.in/">AsiaTech Inc</a></span></div></div>'; if (mail($to, $subject, $email_content, $headers)) { header('Location: contact.php?captcha=yes'); } else { header('Location: contact.php?captcha=other'); } } else { header('Location: contact.php?captcha=no'); } } ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Contact Us - Hotel New Shradha</title> <meta name="description" content="Hotel New Shradha, Katra, is the perfect abode during your stay in the holy land of Mata Rani (Vaishno Devi). Unwind, relax and have a great stay while you visit the Vaishno Devi temple. The Katra hotel is located on the Railway Road. The hotel offers various modern amenities and the rooms are well designed to give you utmost comfort while you are enjoying your vacation. It's a most modern Eco-Friendly Green Architectural Designed Building."> <meta name="keywords" content="Contact hotel in katra"> <meta name="author" content=""> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic%7cPlayfair+Display:400,700%7cGreat+Vibes' rel='stylesheet' type='text/css'><!-- Attach Google fonts --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="assets/css/styles-1.css"><!-- Attach the main stylesheet file --> <script src='https://www.google.com/recaptcha/api.js'></script> <link rel="shortcut icon" href="assets/img/fav.png"> </head> <body> <div class="main-wrapper"> <!-- Header Section --> <?php include "includes/header.php"; ?> <!-- End of Header Section --> <!--Breadcrumb Section--> <section id="breadcrumb-section" data-bg-img="assets/img/bg.jpg"> <div class="inner-container container"> <div class="ravis-title"> <div class="inner-box"> <div class="title page-title">Contact Us</div> <div class="sub-title">Stay Connected With Us</div> </div> </div> <div class="breadcrumb"> <ul class="list-inline"> <li><a href="../index.html">Home</a></li> <li class="current"><a href="#">Contact Us</a></li> </ul> </div> </div> </section> <!--End of Breadcrumb Section--> <!--Contact Section--> <section id="contact-section"> <div class="inner-container container-fluid"> <div class="t-sec"> <div class="ravis-title-t-2"> <div class="title"><span>Contact Us</span></div> <div class="sub-title">Do not hesitate to contact me if you have any further questions</div> </div> <div class="contact-info"> <div class="contact-inf-box"> <div class="icon-box"> <i class="fa fa-home"></i> </div> <div class="text"> Railway Road, Katra, Jammu and Kashmir 182320 </div> </div> <div class="contact-inf-box"> <div class="icon-box"> <i class="fa fa-phone"></i> </div> <div class="text"> Landline No.: 01991233906 <br> Reservation: +91 7006623994 </div> </div> <div class="contact-inf-box"> <div class="icon-box"> <i class="fa fa-envelope"></i> </div> <div class="text"> hotelnewshraddha@gmail.com </div> </div> </div> </div> <center> <div class="row "> <div class="container"> <h3>Hotel Travel Partner for Tour Packages</h3> <div class="col-md-12"> <div class="footer-column footer-explore clearfix"> <div class="new-sec hotels"> <p> My Tour My Choice Pvt Ltd</p> <ul> <li> <i class="fa fa-envelope"></i> contact@mytourmychoice.com, <br>mtmcrooms@gmail.com</li> <li><i class="fa fa-phone"></i> +91-7006623994 | + 91-9906243220</li> </ul> </div></div> </div> </div> </div></center> <div class="b-sec clearfix"> <div class="contact-form col-md-6"> <form action="" method="post"> <!-- <?php if($_GET['captcha'] == 'yes'){ echo '<div style="margin: 15px;" class="alert alert-success">Message Send</div>'; } else if($_GET['captcha'] == 'no'){ echo '<div style="margin: 15px;" class="alert alert-danger">Captcha Failed. Please try again!</div>'; } else if($_GET['captcha'] == 'other'){ echo '<div style="margin: 15px;" class="alert alert-danger">Oops! Something went wrong and we couldn\'t send your message.</div>'; } ?> --> <div class="field-row"> <input type="text" name ="name" placeholder="Name :" required> </div> <div class="field-row"> <input type="text" name="phone" placeholder="Phone :"> </div> <div class="field-row"> <input type="email" name="email" placeholder="Email :" required> </div> <div class="field-row"> <textarea name="msg" placeholder="Your Message" required></textarea> </div> <div class="g-recaptcha" data-sitekey="6LfHoMYqAAAAAOlWtwaco8qACkrs16zAhrNWxu5g"></div> <div class="field-row"> <input type="submit" value="Submit" name="formsubmit"> </div> </form> </div> <div class="col-md-6"> <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d13386.545453639925!2d74.9315618!3d32.9869944!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xf837d1bdac0c2cbf!2sHotel%20New%20Shraddha!5e0!3m2!1sen!2sin!4v1648533705292!5m2!1sen!2sin" width="100%" height="600" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> </div> </div> </div> </section> <!--End of Contact Section--> <!--Footer Section--> <?php include "includes/footer.php"; ?> <!--End of Footer Section--> </div> <!-- JS Include Section --> <script type="text/javascript" src="assets/js/jquery-3.1.0.min.js"></script> <script type="text/javascript" src="assets/js/helper.js"></script> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&key=AIzaSyBFqY_VBzRTQTtzbOImGqLkJFHUwM7T-4g"></script> <script type="text/javascript" src="assets/js/template.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings