HI
I thinks i have been infront of the compter for too long now...
Can anyone help me out here.
I have a functionpage and a "client page"
The function i have problem with is this:
///// Check if empty fields /////
function checkfields($value) {
$array = array('Fname', 'Lname', 'IDcode', 'Region', 'Depart', 'Email');
foreach ($array as $value) {
if(empty($$value)) {
return TRUE;
} else {
return FALSE;
}
}
}
And the "client page":
//// Check If Empty ////
if (checkfields($value) == FALSE) {
$error['value'] = "Please check your fields.!";
} else {
I get this error message from the browser:
"Notice: Undefined variable: value in c:" this error is on the "client page"
Help....
/Joel