Método de solicitud de servidor PHP
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// The request is using the POST method
}
Average Angelfish
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// The request is using the POST method
}
echo $_SERVER['PHP_SELF'];
echo "<br>";
echo $_SERVER['SERVER_NAME'];
echo "<br>";
echo $_SERVER['HTTP_HOST'];
echo "<br>";
// echo $_SERVER['HTTP_REFERER'];
echo "<br>";
echo $_SERVER['HTTP_USER_AGENT'];
echo "<br>";
echo $_SERVER['SCRIPT_NAME'];
$_SERVER['REQUEST_METHOD'];