Page 1 of 1

Easy method to search for existence of $_GET and $_POST vars

Posted: Fri Apr 01, 2005 11:32 am
by anjanesh
Just wanted to know if theres an easier way to check this

Code: Select all

if (
   isset($_GET['a'])  &&
   isset($_GET['ab']) &&
   isset($_GET['c'])  &&
   isset($_GET['e'])  &&
   isset($_GET['z'])  &&
   isset($_GET['fg']) &&
   isset($_GET['hj'])
)
   {
   	// Do Something
   }
If there is please let me know.
Thanks

Posted: Fri Apr 01, 2005 1:18 pm
by feyd
pass an array of keys to a function, along with the array to check into... ?