Server IP : 103.53.40.154 / Your IP : 13.58.200.78 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/justpestcontrol.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include_once('admin/config.php'); $cat_url = $_REQUEST['slug_link']; $querydt="SELECT * FROM `tbl_product` WHERE `slug_link`='$cat_url'"; $rundt = mysqli_query($db,$querydt) or die("Query Not run"); $datat = mysqli_fetch_assoc($rundt); if ($_SERVER["REQUEST_METHOD"] === "POST") { if (isset($_POST['submit'])) { $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $subject = 1; $message = $_POST['message']; if (empty($name)) { $errors[] = "Name field is required."; } elseif (!ctype_alpha($name)) { $errors[] = "Name can only contain alphabets."; } if (empty($email)) { $errors[] = "Email field is required."; } if (empty($phone)) { $errors[] = "Phone field is required."; } elseif (!preg_match('/^\d{10}$/', $phone)) { $errors[] = "Phone number should have exactly 10 digits."; } if (!empty($message)) { $message = htmlspecialchars($message); // Sanitize the message input } if (empty($errors)) { $query = "INSERT INTO `tbl_queries` (`name`, `phone`, `email`, `subject`, `message`) VALUES (?, ?, ?, ?, ?)"; $stmt = mysqli_prepare($db, $query); mysqli_stmt_bind_param($stmt, "sssss", $name, $phone, $email, $subject,$message); $result = mysqli_stmt_execute($stmt); mysqli_stmt_close($stmt); if ($result) { echo "<script> window.alert('Successfully Sent! We will contact you soon'); window.location.href = '$wspath'; </script>"; } else { echo "Error"; } } } } ?> <!DOCTYPE html> <html class="no-js" lang="en"> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php include 'top-link.php';?> <title><?= str_replace("Panchkula",$location,$datat["meta_title"]);?></title> <meta name="description" content="<?= str_replace("Panchkula",$location,$datat["meta_desc"]);?>"> <style> .with-errors{ color:red; } </style> </head> <body> <?php include 'header.php';?> <!-- BANNER --> <div class="section subbanner"> <div class="container"> <div class="row"> <div class="col-sm-12 col-md-12"> <div class="caption"><?= str_replace("Panchkula",$location,$datat["en_name"]);?></div> <ol class="breadcrumb"> <li><a href="index.php">Home</a></li> <li class="active"><?php echo $datat['en_name']?></li> </ol> </div> </div> </div> </div> <!-- PEST CONTROL --> <!-- PEST CONTROL services in detail --> <div class="section service"> <div class="container"> <div class="row"> <div class="col-sm-4 col-md-4"> <div class="widget categories"> <div class="widget-title"> <h4>Services</h4> </div> <ul class="category-nav"> <?php $sqlci = "SELECT * FROM `tbl_product`"; $runci = mysqli_query($db, $sqlci) or die("Query Not run"); while ($datas = mysqli_fetch_assoc($runci)) { $serviceUrl = $wspath ; if (isset($_REQUEST['loc_slug'])) { $loc_slug = htmlspecialchars($_REQUEST['loc_slug']); $serviceUrl .= $loc_slug. '/'; } $serviceUrl .= '' . $datas['slug_link'] . '.html'; ?> <li class="active"><a href="<?php echo $serviceUrl; ?>"><?php echo $datas['en_name']?></a></li> <?php } ?> <!--<li><a href="services-details.php">Commercial Pest Control</a></li>--> <!--<li><a href="services-details.php">Hotels Pest Control</a></li>--> </ul> </div> <div class="widget"> <div class="blok quotes"> <div class="blok-title"> <span>SCHEDULE</span> <br>A FREE INSPECTION </div> <form method="POST" action="<?php $_PHP_SELF?>" class="form-contact shake" > <div class="form-group"> <input type="text" class="form-control" name="name" placeholder="Enter Name *" required=""> <div class="help-block with-errors"> <?php if (isset($errors) && in_array("Name field is required.", $errors)) { ?> <p class="error">Name field is required.</p> <?php } elseif (isset($errors) && in_array("Name can only contain alphabets.", $errors)) { ?> <p class="error">Name can only contain alphabets.</p> <?php } ?> </div> </div> <div class="form-group"> <input type="email" class="form-control" name="email" placeholder="Enter Email *" required=""> <div class="help-block with-errors"> <?php if (isset($errors) && in_array("Email field is required.", $errors)) { ?> <p class="error">Email field is required.</p> <?php } ?> </div> </div> <div class="form-group"> <input type="text" class="form-control" name="phone" placeholder="Enter Phone *" required=""> <div class="help-block with-errors"> <?php if (isset($errors) && in_array("Phone field is required.", $errors)) { ?> <p class="error">Phone field is required.</p> <?php } elseif (isset($errors) && in_array("Phone number should have exactly 10 digits.", $errors)) { ?> <p class="error">Phone number should have exactly 10 digits.</p> <?php } ?> </div> </div> <div class="form-group"> <textarea class="form-control" rows="4" name="message" placeholder="Enter Your Message *" required=""></textarea> <div class="help-block with-errors"></div> </div> <div class="form-group"> <div id="success"></div> <button type="submit" name="submit" class="btn btn-default disabled" style="pointer-events: all; cursor: pointer;">ASK A QUOTE</button> </div> </form> <div class="icon"><span class="fa fa-calendar"></span></div> </div> </div> </div> <div class="col-sm-8 col-md-8"> <div class="box-service"> <div class="box animg"> <img src="<?php echo $wspath?>admin/images/<?php echo $datat['img_1'];?>" alt="<?php echo $datat['en_name']?>" class="img-responsive" /> </div> <div class="description"> <div class="section-title"> <h3 class="lead"><?= str_replace("Panchkula",$location,$datat["en_name"]);?></h3> </div> <!--<p>Pests can invade your home, causing discomfort, health risks, and property damage. That's where residential pest control services come in. At Just Pest Control, we understand the importance of creating a safe and pest-free environment for you and your family. Our residential pest control services are designed to identify, eliminate, and prevent pest infestations, ensuring your home remains a haven.</p>--> <!--<p>Identification and Assessment: Our first step in residential pest control is to conduct a thorough inspection of your property. Our trained technicians will identify the specific pests present, assess the severity of the infestation, and determine the factors contributing to the problem. This allows us to develop a targeted treatment plan tailored to your unique situation.</p>--> <!-- <p>Identification and Assessment: Our first step in residential pest control is to conduct a thorough inspection of your property. Our trained technicians will identify the specific pests present, assess the severity of the infestation, and determine the factors contributing to the problem. This allows us to develop a targeted treatment plan tailored to your unique situation.</p>--> <!-- <p>Identification and Assessment: Our first step in residential pest control is to conduct a thorough inspection of your property. Our trained technicians will identify the specific pests present, assess the severity of the infestation, and determine the factors contributing to the problem. This allows us to develop a targeted treatment plan tailored to your unique situation.</p>--> <!-- <p>Customized Treatment Plans: We believe in providing personalized solutions to address your specific pest control needs. Based on our assessment, we will create a customized treatment plan that targets the identified pests and their nesting areas. Our approach is comprehensive, considering factors like the type of pests, the extent of the infestation, and the layout of your home. We prioritize the use of eco-friendly and low-toxicity products to ensure the safety of your family and pets.</p>--> <!-- <p>Effective Pest Elimination: Once the treatment plan is in place, our experienced technicians will execute it with precision. Whether you're dealing with common household pests like ants, cockroaches, or spiders, or facing more challenging issues like termites or bed bugs, we have the expertise and tools to eliminate them effectively. Our team stays updated with the latest industry advancements and uses proven methods to ensure optimal results. </p>--> <?= str_replace("Panchkula",$location,$datat["desc_1"]);?> <!-- <table class="table table-bordered table-pestco"> <thead> <tr> <th>TYPE OF WORK</th> <th class="tprice">PRICE</th> </tr> </thead> <tbody> <tr class="thead"> <td>Condimentum aliquam mollit</td> <td></td> </tr> <tr> <td class="tlist">Ultrices lacus proin</td> <td><strong>$450.00</strong></td> </tr> <tr> <td class="tlist">Sollicitudin viverra vel varius eget sit mollis</td> <td><strong>$450.00</strong></td> </tr> <tr> <td class="tlist">Eget sed dapibus magna nulla nonummy</td> <td><strong>$450.00</strong></td> </tr> <tr class="thead"> <td>Condimentum aliquam mollit</td> <td></td> </tr> <tr> <td class="tlist">Ultrices lacus proin</td> <td><strong>$450.00</strong></td> </tr> <tr> <td class="tlist">Sollicitudin viverra vel varius eget sit mollis</td> <td><strong>$450.00</strong></td> </tr> </tbody> </table> --> </div> </div> </div> </div> </div> </div> <?php include 'locations.php';?> <?php include 'bottom-line.php';?> <?php include 'footer.php';?> </body> </html>