function processPost($formvalues) { # change the employee type to an array # first check if the employee type value exists in the formvalues, this gives an E_NOTICE warning # for PHP 5 if (isset($formvalues['employeetype'])) { # check if the employee type value is an array if (!is_array($formvalues['employeetype'])) { # Do not add the employee type if its an empty string if (empty($formvalues['employeetype'])) { $formvalues['employeetype'] = array(); } else { $formvalues['employeetype'] = explode(",", $formvalues['employeetype']); } } } parent::processPost($formvalues); }