Micro blog about Answer to the Ultimate Question of Life, the Universe, and Everything.
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home
  3. PHP
  4. PHP

Check if anything is assigned to $_GET

Details
Written by: Stanko Milosev
Category: PHP
Published: 06 August 2008
Last Updated: 18 July 2011
Hits: 5640

So, this is my first post 

How to check is anything passed to $_GET or $_POST variables?

Easily:

if (!isset($_GET['download'])) {

Example:

<?php
if (!isset($_GET['download'])) {
echo ('Error download is not assigned');
} else {
echo ($_GET['download']);
}
?>

Taken from here.

Page 4 of 4

  • 1
  • 2
  • 3
  • 4