php gurus
php gurus
Out of context: Reply #8
- Started
- Last post
- 11 Responses
- ldww0
you need to use global vars, cause you are not passing anything into the function so it can not see it.
checkFormCrap(){
global $_POST;
foreach($_POST as $key=>$value) {
global $$key;if ($$key && !empty($$key){
$stopForm = 1;
}
return $stopForm;
}