HTTP Request Method in PHP
In PHP, you can determine the HTTP method used to make the request. To do this, you need to read the following value:
<?php
$method = $_SERVER['REQUEST_METHOD'];
var_dump($method); // 'GET' or 'POST'
?>
Create a page to which you will send a request either using the GET method or the POST method.
Make sure your page determines which method the request was sent with and displays information about it.