CodeIgniter Forums
Validation with variables - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Validation with variables (/showthread.php?tid=61253)

Pages: 1 2


RE: Validation with variables - ruiganga - 04-06-2015

Great tip. Thanks a lot!!


RE: Validation with variables - madaan_tushar - 05-26-2015

//Load first form library

if($this->input->post('submit'))
{
            $this->form_validation->set_rules('field_name', 'Field Title', 'trim|required');
                 if($this->form_validation->run() == TRUE)
{
//perform operations to insert data query
}
}