|
Server IP : 45.113.226.95 / Your IP : 216.73.217.37 Web Server : LiteSpeed System : Linux bharat.hostitbro.com 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64 User : digita21 ( 1701) PHP Version : 8.3.30 Disable Function : mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0750) : /home2/digita21/worldwideengineers.in/admin/gallery/../js/../img/../../cdn-cgi/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Collect and sanitize form data
$name = htmlspecialchars(trim($_POST['name']));
$email = htmlspecialchars(trim($_POST['email']));
$subject = htmlspecialchars(trim($_POST['subject']));
$message = htmlspecialchars(trim($_POST['message']));
// You can replace this part with sending an email or saving the data to a database.
// Example: Sending email
$to = "worldwideengineers1@gmail.com"; // Change this to your email
$subject = "Request A Call from $name";
$body = "Name: $name\nEmail: $email\n\nsubject:\n$subject\n\nMessage:\n$message";
$headers = "From: $email";
// Send the email (optional, depending on your needs)
if (mail($to, $subject, $body, $headers)) {
echo "<script>alert('Your request has been submitted successfully.'); window.location.href = 'index.php';</script>";
} else {
echo "<script>alert('There was an error processing your request. Please try again later.'); window.location.href = 'index.php';</script>";
}
}
?>