Server IP : 103.53.40.154 / Your IP : 3.133.124.161 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/digitala2z.com/../globalliftssystems.com/../jyotishandayurved.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php require_once("admin/config.php"); if(isset($_POST["submit"])){ $name = htmlspecialchars($_POST["name"]); $phone = htmlspecialchars($_POST["phone"]); $email = $_POST["email"]; $message = $_POST["message"]; $insert = "INSERT INTO tbl_queries(`name`, phone, `email`,`message`) VALUES ('$name', '$phone', '$email', '$message')"; $query = mysqli_query($db,$insert); if($query){ $to = "jyotishayurvedi@gmail.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 .= "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 ='contact.html'; </script>"; }else{ echo ("<script> window.alert('Something Went Wrong.'); window.location.href='contact.html'; </script>"); } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Contact Us | Jyotish And Ayurved</title> <meta content="width=device-width, initial-scale=1.0" name="viewport" /> <style> .require{ color:black !important; } </style> <?php include("links.php") ?> </head> <body> <?php include("header.php") ?> <!-- hs Navigation End --> <!-- hs About Title Start --> <div class="hs_indx_title_main_wrapper"> <div class="hs_title_img_overlay"></div> <div class="container"> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 full_width"> <div class="hs_indx_title_left_wrapper"> <h2>संपर्क करें</h2> </div> </div> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 full_width"> <div class="hs_indx_title_right_wrapper"> <ul> <li><a href="index.php">मुख्य पृष्ठ</a> > </li> <li>संपर्क करें</li> </ul> </div> </div> </div> </div> </div> <!-- hs About Title End --> <!-- hs संपर्क करें Title Start --> <div class="hs_contact_tittle_main_wrapper"> <div class="container"> <div class="row"> <?php require_once("admin/config.php"); $select = "SELECT * FROM tbl_contact"; $query = mysqli_query($db,$select); $fetch = mysqli_fetch_assoc($query); $phone = $fetch["phone"]; $email = $fetch["email"]; $address = $fetch["address"]; ?> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="hs_about_heading_main_wrapper"> <div class="hs_about_heading_wrapper"> <h2>सहायता चाहिए <span>हमसे संपर्क करें</span></h2> <h4><span></span></h4> </div> </div> </div> <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12"> <div class="hs_contact_title_box_wrapper"> <div class="hs_service_icon_main_wrapper"> <div class="hs_service_icon_wrapper hs_contact_indx_icon_wrapper"> <i class="fa fa-phone"></i> <div class="btc_step_overlay"></div> </div> </div> <p><a href="tel:<?php echo $phone ?>;"><?php echo $phone ?></a><br><a href="#" style="visibility:hidden;">Live@example.com</a></p> </div> </div> <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12"> <div class="hs_contact_title_box_wrapper"> <div class="hs_service_icon_main_wrapper"> <div class="hs_service_icon_wrapper hs_contact_indx_icon_wrapper"> <i class="fa fa-envelope"></i> <div class="btc_step_overlay"></div> </div> </div> <p><a href="mialto:<?php echo $email ?>"><?php echo $email ?></a><br><a href="#" style="visibility:hidden;">Live@example.com</a></p> </div> </div> <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12"> <div class="hs_contact_title_box_wrapper"> <div class="hs_service_icon_main_wrapper"> <div class="hs_service_icon_wrapper hs_contact_indx_icon_wrapper"> <i class="fa fa-map-marker"></i> <div class="btc_step_overlay"></div> </div> </div> <p><?php echo $address ?></p> </div> </div> </div> </div> </div> <!-- hs संपर्क करें Title End --> <!-- hs contact map Start --> <div style="clear:both;"> </div> <div class="hs_contact_map_main_wrapper" style="position:relative;"> <div id="map"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3598.4287610451106!2d85.1203014!3d25.5906651!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x39ed580e56e1f5eb%3A0x890d7cb34b6c45c1!2sNew%20Yarpur%2C%20Yarpur%2C%20Gardanibagh%2C%20Patna%2C%20Bihar%20800001!5e0!3m2!1sen!2sin!4v1700822591211!5m2!1sen!2sin" width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> </div> </div> <!-- hs contact map End --> <!-- hs contact form Start --> <div class="hs_contact_indx_form_main_wrapper"> <div class="container"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="hs_about_heading_main_wrapper"> <div class="hs_about_heading_wrapper"> <h2>मुफ़्त पूछताछ <span>फ़ॉर्म भरें</span></h2> <h4><span></span></h4> </div> </div> </div> <form action="<?php $_PHP_SELF?>" method="POST"> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"> <div class="hs_kd_six_sec_input_wrapper"> <label>नाम</label> <input type="text" class="require" name="name" placeholder="आपका नाम*"> </div> </div> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"> <div class="hs_kd_six_sec_input_wrapper"> <label>फोन नंबर</label> <input type="tel" class="require" name="phone" placeholder="e.g. 1234567890" > </div> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="hs_kd_six_sec_input_wrapper"> <label>ईमेल</label> <input type="email" class="require" name="email" data-valid="email" placeholder="Example@gmail.com" data-error="Email should be valid."> </div> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="hs_kd_six_sec_input_wrapper"> <label>संदेश</label> <textarea rows="6" class="require" name="message" placeholder="अपना सवाल यहाँ पूछें|"></textarea> </div> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="response"></div> <div class="hs_contact_indx_form_btn"> <ul> <li> <input type="hidden" name="form_type" value="contact"> <button type="submit" name="submit" class="hs_btn_hover submitForm" >एक संदेश भेजो</button> </li> </ul> </div> </div> </form> </div> </div> </div> <?php include("footer.php")?> </body> </html>