How to determine what page is requested by POST method?
  • one
    Kremchik answered everything correctly, except that it wasn’t "page requested", but the data was transferred using the POST method. Or - when transferring data, the POST request method was used - Deonis
  • @Deonis why not? Well everything seems logical. A request to the page occurred, the POST method was specified. Data could not be transferred at all. - Sh4dow

2 answers 2

Very simple:

if ($_SERVER['REQUEST_METHOD'] == 'POST') { // это был пост } 

    POST - hidden data transfer method. GET - the request is displayed in the address bar when it is processed and therefore open.

    • the question is a little about that and in the wrong steppe - Alex Kapustin