If Request Method Post Php

[Solved] If Request Method Post Php | Php - Code Explorer | yomemimo.com
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

Answers related to if request method post php

Code Explorer Popular Question For Php