note 57126 deleted from security.globals by danbrown

From: Date: Thu, 15 Jan 2009 16:33:20 +0000
Subject: note 57126 deleted from security.globals by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149278@lists.php.net to get a copy of this message
Note Submitter: ramosa (0) gmail dotty com ---- Here's a one liner that works both with register globals on or off, and is even secure enough when it's on, as you make sure you init the var. Using the ?: operator $variable = isset($_GET["variable"]) ? $_GET["variable"] : "";

« previous php.notes (#149278) next »