Answers for "if request type is post"

PHP
0

if request type is post

$_SERVER['REQUEST_METHOD']
// e.g 
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
     // The request is using the POST method
}
Posted by: Guest on January-28-2022

Browse Popular Code Answers by Language