Question : check if post request php
Answered by : lokesh-ramchandani
Better use $_SERVER['REQUEST_METHOD']:
if ($_SERVER['REQUEST_METHOD'] === 'POST') { // …
}
Source : | Last Update : Tue, 16 Feb 21
Question : php detect request type
Answered by : code-grepper
if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Boom baby we a POST method
}
if ($_SERVER['REQUEST_METHOD'] === 'GET') { // We are a GET method
}
Source : | Last Update : Wed, 06 Nov 19
Question : if post php
Answered by : debugdefrontpage
if($_SERVER['REQUEST_METHOD'] == 'POST') {}
Source : | Last Update : Mon, 17 May 21