How do i set the validation. currently i have callback function in the controller like this:
public function validation() { $data = $this->input->post('Result', true); if ($data != 'Unfit') { $detail = $this->input->post('Detail', true); if ($data == 'Unfit') { $this->form_validation->set_message('validation', '%s it's work.'); return false; } } return true; }
Question and answer is powered by AnsPress.io