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<?php
  $method = $_SERVER['REQUEST_METHOD'];
  var_dump($method); // 'GET' or 'POST'
?>
Задание 1

Create a page to which you will send a request either using the GET method or the POST method.

Задание 2

Make sure your page determines which method the request was sent with and displays information about it.