Answers for "check if php is post"

PHP
1

check if post request php

Better use $_SERVER['REQUEST_METHOD']:

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

if post php

if($_SERVER['REQUEST_METHOD'] == 'POST') {}
Posted by: Guest on May-10-2021

Browse Popular Code Answers by Language