"; $error_state = true; } if ($error_state == false) { if ($data['account_no'] == '' || $data['account_no_repeat'] == '') { $out['error'] .="Invalid Account Number
"; $error_state = true; } else { if ($data['account_no'] != $data['account_no_repeat']) { $out['error'] .="Account numbers did not match
"; $error_state = true; } } if ($data['banks'] == '') { $out['error'] .="Select Bank Name
"; $error_state = true; } if (trim($data['account_type']) == '') { $out['error'] .="Select Account Type
"; $error_state = true; } } $out['error_state'] = $error_state; // print_r($data); return $out; } } /* * $data['country_combo'] = $this->combo_model->getCountryCombo('country', $data['country']); $data['bank_combo'] = $this->combo_model->getBankCombo('banks', $data['banks']); $data['account_type'] = $this->combo_model->getAccountTypeCombo('account_type', $data['account_type']); * $data['firstname'] = $data['lastname'] = $data['account_no'] = $data['account_no_repeat'] = ''; $data['state'] = $data['city'] = ''; */