Sat, July 24, 2021
 
https://devcodepro.comdevcodepro
X
Home · Latest · Trends
1

Check if GET / POST exists

if (!$_POST) {
  echo 'POST Not Exist';
} else {
  echo 'POST Exist';
}
if (!$_GET) {
  echo 'GET Not Exist';
} else {
  echo 'GET Exist';
}
rated 1 times (1) (0)
comments: 0 / hits: 129  / 6 months ago, mon, jan 25, 21, 10:13:23
More From » PHP
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Posted
Jake
Member since Jan 6, 2021
Total Code Snippets: 4
Total Comments: 0
Location: Hartford, CT
Jake snippets
7 months ago, wed, jan 6, 21, 2:42:50
comments: 1 / hits: 378
SQL
6 months ago, sun, jan 24, 21, 5:39:27
comments: 0 / hits: 121
CSS
5 months ago, tue, feb 23, 21, 1:51:57
comments: 1 / hits: 349
PHP