note 79039 deleted from function.isset by sobak

From: Date: Sat, 10 Dec 2016 09:53:15 +0000
Subject: note 79039 deleted from function.isset by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208415@lists.php.net to get a copy of this message
Note Submitter: contact at scottbyrns dot com ---- If you have for example a variable in your URL say url.php?var= and some one types in %00 the variable will pass isset. For post and get variables I wrote this function to filter out varables that are set but empty. function isval($inp){ if(isset($inp)){ $len = strlen($inp); if($len > 0){ return true; } else{ return false; } } else{ return false; } }

« previous php.notes (#208415) next »