Welcome Guest, Not a member yet? Register   Sign In
trim|valid_email not working in validation
#16

(01-08-2018, 11:37 PM)XtreemDeveloper Wrote: Firstly load form_validation library after that use set_rules
Check this code for valid email


$this->load->library('form_validation');
$this->form_validation->set_rules('email', 'Email address', 'trim|required|valid_email');

The problem was when I also use set_data(). Then trim do not work on the data as I expected. Case closed. Thanks.
Reply


Messages In This Thread
RE: trim|valid_email not working in validation - by 040mag - 01-09-2018, 12:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB