Server IP : 103.53.40.154 / Your IP : 18.218.190.118 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/pccaterers.in/../dial4crm.com/../justpestcontrol.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php if(isset($_POST['submit1'])) { $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $subject = $_POST['subject']; $sql20="INSERT INTO `tbl_queries`(`name`, `email`, `phone`,`message`) VALUES ('$name','$email','$phone','$subject')"; $result20 = mysqli_query($db, $sql20) or die("Query unsuccessful"); if($result20){ // header('location:blog-list.php'); echo ("<script LANGUAGE='JavaScript'> window.alert('Your Query has been submited. Our team will contact you soon!'); window.location.href='services.html'; </script>"); mysqli_close($db); }else{ // header('location:add-blog.php'); echo 'Error'; } } ?> <style> .popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; display: none; } .popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #fff; padding: 20px; width: 400px; text-align: center; z-index: 999; display: none; } .close-btn { color: #edc0c0; border: none; padding: 10px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; cursor: pointer; margin-top: 10px; } .form-floating{ border:1px solid brown; } </style> <div class="popupp"> <div class="container"> <div class="row"> <div class="col"> <div class="popup-overlay"></div> <div class="popup" style="padding-top:80px;"> <h2>Welcome!</h2> <p>Enquiry Now</p> <form action="<?php $_PHP_SELF ?>" method="POST" style="margin:0 20px;"> <div class="row g-3"> <div style="padding-bottom: 10px;" class="col-12"> <div class="form-floating"> <input type="text" class="form-control border-0 bg-light" id="name" name="name" placeholder="Your Name" required> <!--<label for="name">Your Name</label>--> </div> </div> <div style="padding-bottom: 10px;" class="col-12"> <div class="form-floating"> <input type="email" class="form-control border-0 bg-light" id="email" name="email" placeholder="Your Email" required> <!--<label for="email">Your Email</label>--> </div> </div> <div style="padding-bottom: 10px;" class="col-12"> <div class="form-floating"> <input type="text" class="form-control border-0 bg-light" id="phone" name="phone" minlength="10" maxlength="10" placeholder="Phone no." required> <!--<label for="phone">Phone Number</label>--> </div> </div> <div style="padding-bottom: 10px;" class="col-12"> <div class="form-floating"> <textarea class="form-control border-0 bg-light" name="subject" placeholder="Your Address" id="message" style="height: 100px"></textarea> <!--<label for="message">Address</label>--> </div> </div> <div class="col-12"> <button class="btn btn-primary py-3 px-5" type="submit" name="submit1">Send Message</button> </div> </div> </form> <button style="color:brown" class="close-btn">Close</button> </div> </div> </div> </div> </div> <script> document.addEventListener("DOMContentLoaded", function() { var popupOverlay = document.querySelector(".popup-overlay"); var popup = document.querySelector(".popup"); var closeBtn = document.querySelector(".close-btn"); function showPopup() { popupOverlay.style.display = "block"; popup.style.display = "block"; } function closePopup() { popupOverlay.style.display = "none"; popup.style.display = "none"; } showPopup(); closeBtn.addEventListener("click", closePopup); }); </script>