backend.php
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $name = $_POST["name"];
    $email = $_POST["email"];

    // Process the data or perform any backend tasks
    // ...

    // Return a response back to the frontend
    $response = [
        "status" => "success",
        "message" => "Data received successfully!"
    ];

    header("Content-Type: application/json");
    echo json_encode($response);
}
?>