Answers for "check if request method is post or get in php"

PHP
7

php detect request type

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
     // Boom baby we a POST method
}
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
     // We are a GET method
}
Posted by: Guest on October-30-2019

Code answers related to "check if request method is post or get in php"

Browse Popular Code Answers by Language