Answers for "how to know if a request is post or get in php"

PHP
1

check if post request php

Better use $_SERVER['REQUEST_METHOD']:

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

Code answers related to "how to know if a request is post or get in php"

Browse Popular Code Answers by Language