if checking means just to test if the values are SET you can do the following
make a list of variables to be set automatically if a person has pressed a submit button for a login script for example;
$loginscriptvars=array("username","password","something else","perhaps a hidden form value");
and a func:
this one is for _GET
function areallset($array){
for ($a=0;$a<count($a);$a++){
if (!isset($_GET[$array])) return 0;
}
return 1;
}
and then when testing
if (areallset($loginscriptvars)){
// trying to log in
if successful: set cookies and redirect (for example)
}
// AND HERE, THE ACTUAL PAGE FOR THE FORM
you could also write code that outputs which vars are missing etc etc..
anyways, this is similar to how i do it
and even more advanced: make an array for the type of contents of each variable and then write a code that checks its contents to see if the datatype (date? text? strongpass? etc etc) is good, and THEN proceed...