<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    echo "<h2>Form was submitted!</h2>";
    echo "<pre>";
    print_r($_POST);
    echo "</pre>";
    echo "Form is working correctly!";
    exit();
}
?>
<!DOCTYPE html>
<html>
<head>
    <title>Test Form</title>
</head>
<body>
    <h1>Test Form - Click the button</h1>
    <form method="POST">
        <input type="text" name="test" placeholder="Enter something" required>
        <button type="submit">Submit</button>
    </form>
</body>
</html>