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
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