Wed, March 3, 2021
 
https://devcodepro.comdevcodepro
Home · Latest · Trends  /  PHP
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: 44  / 1 month 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
2 months ago, wed, jan 6, 21, 2:42:50
comments: 1 / hits: 156
SQL
1 month ago, sun, jan 24, 21, 5:39:27
comments: 0 / hits: 35
CSS
1 week ago, tue, feb 23, 21, 1:51:57
comments: 0 / hits: 32
PHP