HEX
Server: Apache
System: Linux p3plzcpnl485017.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: rbrijwzv8p53 (8461783)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/rbrijwzv8p53/public_html/usa.mniops.education/contact.php
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $to_email = "usa@mniops.education"; // Replace with your email address
    $subject = "Contact Form Submission";

    // Extract form data
    $full_name = $_POST["full_name"];
    $email = $_POST["email"];
    $phone = $_POST["phone"];
    $subject_field = $_POST["subject"];
    $message = $_POST["message"];

    // Construct the email message for your organization
    $message = "Dear Admin,\n\n";
    $message .= "A new contact form submission has been received from MNIOPS USA.\n\n";
    $message .= "Here are the details:\n\n";
    $message .= "Full Name: $full_name\n";
    $message .= "Email Address: $email\n";
    $message .= "Phone Number: $phone\n";
    $message .= "Subject: $subject_field\n";
    $message .= "Message:\n$message\n\n";
    $message .= "Please review the submission and respond accordingly.\n\n";
    $message .= "Best regards,\n MNIOPS USA";

    $headers = "From: $email";

    // Send the email to your organization
    mail($to_email, $subject, $message, $headers);

    // Send a thank-you email to the user
    $user_subject = "Thank You for Contacting Us";
    $user_message = "Dear $full_name,\n\n";
    $user_message .= "Thank you for contacting us. We have received your message and will respond to your inquiry soon.\n\n";
    $user_message .= "Best regards,\n MNIOPS USA";

    $user_headers = "From: usa@mniops.education"; // Replace with your organization's email address

    mail($email, $user_subject, $user_message, $user_headers);

    // Redirect the user to a thank-you page
    header("Location: thank_you.html");
    exit();
}
?>