note 79038 deleted from function.isset by nlopess

From: Date: Thu, 08 Nov 2007 23:40:02 +0000
Subject: note 79038 deleted from function.isset by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-132126@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 (#132126) next »