D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
home
/
shubmkcj
/
praneshaswalphotography.com
/
Filename :
contact.php
back
Copy
<?php include "include/config.php"; include "include/header.php"; ?> <section class="contact-section"> <div class="container contact-section-container"> <h1 class="text-uppercase text-center contact-h1">Contact Me</h1> <div class=" row text-secondary font-heading mb-2 text-center text-uppercase"> <div class="col-md-4"> <i class="mb-2 fa-4x fas text-primary fa-map-marker"></i> <p class="p-spacing"><strong class="p-strong ">B4-502 Pacific Golf Estate Sahastradhara Road Dehradun – 248001 (Uttarakhand)</strong></p></div> <div class="col-md-4"> <i class="mb-2 fa-4x fas text-primary fa-phone"></i> <p class="p-spacing"><strong class="h4">+91-9675083174</strong></p></div> <div class="col-md-4"> <i class="mb-2 fa-4x fas text-primary fa-envelope"></i> <p class="p-spacing"><strong class="p-strong ">hi@praneshaswalphotography.com</strong></p> </div> </div> <div class="row row-get-touch" > <div class="col-md-8 offset-md-2" > <h2 class="get-in-touch-h2">Get In Touch With Me</h2> <p class="get-in-tough-p">If you have any further questions or queries please do not hesitate to get in touch.</p> <form method="post" action=""> <div class="row"> <div class="mb-2 col-sm-6"><input class="form-control" type="text" name="Name" placeholder="Your name" required=""></div> <div class="mb-2 col-sm-6"><input class="form-control" type="email" name="Email" placeholder="Your email" required=""></div> </div> <div class="mb-2"><input class="form-control" type="text" name="Subject" placeholder="Subject" required=""></div> <div class="mb-2"><textarea class="form-control" name="Message" placeholder="Message" required="" rows="3"></textarea></div> <!--<div class="form-group pb-2"> --> <!-- <div class="g-recaptcha" data-sitekey="6LdYgQ8cAAAAAJjGWNouCb5UQGh5P0b8sNp9BZTZ" data-callback="verifyRecaptchaCallback" data-expired-callback="expiredRecaptchaCallback"></div>--> <!-- <input class="form-control d-none" data-recaptcha="true" required data-error="Please complete the Captcha">--> <!-- <div class="help-block with-errors"></div>--> <!--</div>--> <!--new recaptcha code--> <div class="pb-2 form-group"> <div class="g-recaptcha recaptcha_size" data-sitekey="6LdYgQ8cAAAAAJjGWNouCb5UQGh5P0b8sNp9BZTZ" data-callback="verifyCaptcha"></div> <div id="g-recaptcha-error"></div> </div> <!--end new recaptcha--> <button type="submit" name="submit" class="btn btn-primary btn-sm btn-wide">Send Message</button> </form> </div> </div> </div> </section> <!--mail code start here--> <?php if(isset($_POST['submit'])) { $name=$_POST['Name']; $email=$_POST['Email']; $subject1=$_POST['Subject']; $message=$_POST['Message']; $subject="Contact Form Enquiry Details"; //$to='hi@praneshaswalphotography.com'; $to='hi@praneshaswalphotography.com'; $headers .= "MIME-Version: 1.0"."\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1'."\r\n"; $headers .= 'From:hi@praneshaswalphotography.com'."\r\n"; $ms.="<html></body><div> <div><b>Name:</b> $name,</div> <div><b>Email Id:</b> $email,</div> <div><b>Subject:</b> $subject1 </div>"; $ms.="<div style='padding-top:8px;'><b>Message : </b>$message</div><div></div></body></html>"; if(mail($to,$subject,$ms,$headers)) { echo "<script>alert('Your Enquiry has been submitted successfully.');</script>"; echo "<script>window.open('contact.php','_self')</script>"; } else { echo "<script>window.open('contact.php','_self')</script>"; } } ?> <!--mail php script end here--> <script> window.onload = function() { var $recaptcha = document.querySelector('#g-recaptcha-response'); if($recaptcha) { $recaptcha.setAttribute("required", "required"); } }; </script> <?php include "include/footer.php"; ?> <!--<script type="text/javascript">--> <!-- var response = grecaptcha.getResponse();--> <!--if(response.length == 0)--> //reCaptcha not verified <!-- {--> <!--alert('recaptcha not verfied');--> <!-- }--> <!--else--> //reCaptch verified{} <!-- {--> <!-- }--> <!--</script>-->