fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg php sh-3ll

HOME


sh-3ll 1.0
DIR:/home/tcfq2ylb8mbt/public_html/tanpureinterior.com/
Upload File :
Current File : /home/tcfq2ylb8mbt/public_html/tanpureinterior.com/contact_form.php
<?php  
if(isset($_POST['submit'])) {
 $mailto = "tanpureconstructions@gmail.com";  
 $name = $_POST['name'];
 $phone = $_POST['mobile'];
 $email = $_POST['email'];
 $address = $_POST['address'];
 $message = $_POST['message'];
 $subject = "";
 if($_POST['subject'] === ""){
     $subject = "";
 }else{
    $subject = $_POST['subject'];
 }

 $message = "Name: " . $name . "\n"
 . "Mobile No.: " . $phone. "\n"
 . "Email : " . $email . "\n"
 . "Address : " . $address . "\n"
 . "Message: " . $message . "\n";
 
 
  $headers = "From: " . $email;
 
  $result1 = mail($mailto, $subject, $message, $headers);

  if ($result1) {
      ?>
      <script>
          alert("Your Message was sent Successfully!");
          window.location.href = 'index.php';
      </script>
      
      <?php
  } else {
      ?>
        <script>
          alert("Sorry! Message was not sent, Try again Later.");
      </script>
      <?php
  }
 
}

?>