Hi, i am using enctype=”multipart/form-data” as i need to upload a file.
I have come accross a small problem, i am doin some error check and im now gettin a false result as im using enctype=”multipart/form-data” coz when i take it away its fine. I am check to make sure all fields are field out and i am using this code
This on the link file
[code=php]
function filled_out($form_vars)
{
foreach ($form_vars as $key => $value)
{
if ($value == ”)
return false;
}
return true;
}
and im using this to call the function
[code=php]
//check to see if it is filled out
if (!filled_out($HTTP_POST_VARS)) {
echo “not filled out”;
//if it is all filled out
} else {
Please bare in mind this works when i take out the enctype
any ideas ?
Cheers adam