Menu
Hi,
Is there a way that when a form go to its process page(i.e. when u click submit) that is the fields have not been filled out it will take them back to a page with a msg of the fields they have not actually filled out and keep the settings of all the other fields.
I am currently using a basic one of this
[code=php]
function filled_out($form_vars) {
foreach ($form_vars as $key => $value) {
if((substr($key, 0, 4) != ‘OPT_’) && (substr($key, 0, 6) != ‘GROUP_’)) {
if ($value == ”) {
return false;
}
}
}
return true;
}
Obviously OPT_ and GROUP
Any ideas or tuts on how to do that
Thanks
Adam