Server IP : 103.53.40.154 / Your IP : 18.226.17.251 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/../aviorinternational.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php if(isset($_POST['submit'])) { include "admin/config.php"; $name = htmlspecialchars($_POST['name'],ENT_QUOTES); $phone = htmlspecialchars($_POST['phone'],ENT_QUOTES); $email = htmlspecialchars($_POST['email'],ENT_QUOTES); $message = htmlspecialchars($_POST['message'],ENT_QUOTES); $subject = htmlspecialchars($_POST['subject'],ENT_QUOTES); $sql="INSERT INTO `tb7_user_issue`( `name`, `phone`, `email`, `message`,`state`) VALUES ('$name','$phone','$email','$message','$subject')"; $result = mysqli_query($db, $sql) or die("Query unsuccessful"); if($result){ // header('location:blog-list.php'); echo ("<script LANGUAGE='JavaScript'> window.alert('Your Query for Appointment has been submited. Our team will contact you soon!'); window.location.href='index.php'; </script>"); // echo "submited"; mysqli_close($db); }else{ // header('location:add-blog.php'); echo 'Error'; } } ?> <!doctype html> <html lang="en"> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title></title> <style> form { margin: 20px; } label { display: block; margin-bottom: 5px; font-weight: bold; } input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } input[type="submit"] { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; } input[type="submit"]:hover { background-color: #45a049; } </style> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php include 'toplink.php';?> </head> <body id="index" class="lang-en country-us currency-usd layout-full-width page-index tax-display-disabled fullwidth"> <main> <?php include 'header.php';?> <section> <form> <label for="name">Name:</label> <input type="text" id="name" name="name" required> <label for="email">Email:</label> <input type="email" id="email" name="email" required> <label for="phone">Phone:</label> <input type="tel" id="phone" name="phone" required> <label for="address">Address:</label> <textarea id="address" name="address" required></textarea> <input type="submit" value="Submit"> </form> </section> <?php include 'footer.php';?> </body> </html>