• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validation with variables

#11
Great tip. Thanks a lot!!
Reply

#12
Rainbow 
//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
}
}
 
Rolleyes
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.