Answers for "if request method post 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
1

check if post request php

Better use $_SERVER['REQUEST_METHOD']:

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // …
}
Posted by: Guest on February-09-2021
0

php check request method

$_SERVER['REQUEST_METHOD']
Posted by: Guest on July-03-2020
0

if request method post php

if ($_SERVER['REQUEST_METHOD'] === 'GET') {
     // We are a GET method
}
Posted by: Guest on August-29-2021

Code answers related to "if request method post php"

Browse Popular Code Answers by Language