i want to set form validation so that user cannot add special characters like $, @, &, etc... only alpha numeric characters are allow
$this->form_validation->set_rules('cat_name', 'Category Name', 'trim|xss_clean|required|is_unique[cht_category.cat_name]|min_length[5]|max_length[75]|alpha_numeric');
when i add category name with space then i get following error "The Category Name field may only contain alpha-numeric characters." when i add category name without space or single word then its working fine