<?php
// The request method tells you how the page was loaded.
$method = $_SERVER['REQUEST_METHOD'];
echo "This page was requested with: " . $method;
// Safely read a query string value with the null coalescing operator.
$page = $_GET['page'] ?? 'home';
echo "<p>Showing page: " . htmlspecialchars($page) . "</p>";
?>