Server IP : 103.53.40.154 / Your IP : 3.133.108.47 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/.cphorde/../thedigitalgulf.com/../ariseelectrical.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php if ($_SERVER["REQUEST_METHOD"] === "POST") { if (isset($_POST['submit'])) { $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $message = $_POST['message']; date_default_timezone_set("Asia/Kolkata"); $currentTime = date("Y-m-d H:i:s"); $to = "digitalsaleem12@gmail.com"; // $to = "fastelevatorandescalator@gmail.com"; $subject = "New Query Submitted"; $emailMessage = "A new query has been submitted:\n\n"; $emailMessage .= "Name: $name\n"; $emailMessage .= "Phone: $phone\n"; $emailMessage .= "Email: $email\n"; $emailMessage .= "Message: $message\n"; $headers = "From: $email"; if (mail($to, $subject, $emailMessage, $headers)) { echo "<script> window.alert('Successfully Sent! We will contact you soon'); window.location.href = '$wspath' + 'https://ariseelectrical.in/'; </script>"; } else { echo "Error sending email."; } } } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="style.css"> <style> #form{ border: 5px solid #fefefe; background-color: rgba(0, 0, 0, 0.6); } .form-header h2, .form-header p{ background-color: #fefefe; margin: 0; } .form-box{ width: 100%; padding:20px 10px 10px 10px; } #form input{ display: block; width: 100%; height: 45px; border: none; margin-bottom: 10px; border-radius: 12px; outline: none; padding-left: 26px; background-color: #0e0e0e; } /* input[type="text"]::placeholder , input [type="email"]::placeholder{ position: relative; left: 12px; align-items: center; } */ #form textarea{ display: block; width: 100%; height: 90px; border: none; margin-bottom: 10px; outline: none; border-radius: 12px; padding-left: 26px; padding-top: 25px; } #form button{ display: block; width: 100%; height: 40px; border: none; margin-bottom: 10px; border-radius: 12px; background-color: #bc1e1f; margin-bottom: 15px; transition: 0.3s; } #form button:hover{ color: white; background-color: #bc1e1f; } .form-box button{ color:#fefefe; } </style> </head> <body> <section id="contact-us"> <div class="container"> <div class="row contact-info"> <h2><center>Contact Us</center></h2> <div class="col-md-6 col-sm-6 col-xs-6 col-lg-6 contact-static"> <h2>ARISE ELECTRICALS </h2> <h4><span>Address:</span> Shop No 18 Basement, ASR Plaza, Shahberi, Greater Noida, Ghaziabad, Uttar Pradesh, 201009</h4> <h5><a href="mailto:salmanrayin294@gmail.com;"> salmanrayin294@gmail.com</a></h5> </div> <div class="col-md-6 col-sm-6 col-xs-6 col-lg-6 contact-form"> <form action="<?php $_PHP_SELF?>" id="form" method="POST"> <span class="form-header"> <h2 class="text-center">QUICK ENQUIRY</h2> <p class="text-center"> QUICK CALL NOW <br> +91-8826171066 </p> </span> <div class="form-box"> <input type="text" name="name" id="" placeholder="FULL NAME"> <input type="text" name="phone" id="" placeholder="PHONE NO."> <input type="text" name="email" id="" placeholder="EMAIL ID"> <button type="submit" name="submit">Submit</button> </div> </form> </div> </div> </div> </section> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> </body> </html>