Wednesday, July 25, 2012

PHP - if _GET is empty check

In order not to get the "undefined parameters" message when direct open login and such pages:



if(!empty($_GET["i"]) && !empty($_GET["k"])){
      $id = $_GET["i"];
      $key = $_GET["k"];
}



Cheers!

No comments:

Post a Comment