Facebookov profil osebe Stanko Milosev
Check if anything is assigned to $_GET PDF  | Print |  E-mail
Wednesday, 06 August 2008 07:49

So, this is my first post Smile

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.

Last Updated on Wednesday, 06 August 2008 13:09