html validation in codeigniter code example
Example: codeigniter form_validation email
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');