Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check if post request php

Better use $_SERVER['REQUEST_METHOD']:

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // …
}
Comment

PREVIOUS NEXT
Code Example
Php :: drupal 8 show php errors 
Php :: genrate random password php 
Php :: php console log var_dump 
Php :: php cors allow origin 
Php :: php hide errors 
Php :: str not found laravel 
Php :: install php8.1 
Php :: install php dom extension ubuntu 
Php :: composer update memory limit 
Php :: php change date format 
Php :: get session blade 
Php :: refresh a specific migration in laravel 
Php :: js redirect in php 
Php :: typeof php 
Php :: php wait 
Php :: explode foreach 
Php :: get the today data laravel 
Php :: php cors all 
Php :: laravel get current domain 
Php :: wordpress if thumbnail show else 
Php :: content-type application/json php 
Php :: php increase number in file by one 
Php :: codegreper 
Php :: php generate random string of characters 
Php :: date casting from datetime to d-m-Y laravel 
Php :: wordpress get the main url 
Php :: twig if else 
Php :: how validate hash string in laravel 
Php :: trim comma from variable in php 
Php :: 500 server error laravel 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =