Mon, May 17, 2021
 
https://devcodepro.comdevcodepro
X
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: 99  / 4 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
5 months ago, wed, jan 6, 21, 2:42:50
comments: 1 / hits: 277
SQL
4 months ago, sun, jan 24, 21, 5:39:27
comments: 0 / hits: 93
CSS
3 months ago, tue, feb 23, 21, 1:51:57
comments: 1 / hits: 153
PHP