Question : codeigniter form_validation email
Answered by : sameh-shahin
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
Source : https://codeigniter.com/userguide3/libraries/form_validation.html#prepping-data | Last Update : Tue, 01 Sep 20
Question : codeigniter validation text length
Answered by : prasad-gayan
$this->form_validation->set_rules('ratingMessage', 'Review message', 'trim|max_length[255]|max_length[10]'); $this->form_validation->set_message('max_length', 'Message you have entered for %s is too long please try again!');
Source : | Last Update : Sun, 06 Dec 20