Pages

Tuesday, December 30, 2014

set_message($input_name,$message);

<?php
 public function username_check($str){
if ($str == 'test'){
  $this->form_validation->set_message('username_check', 'The %s field can not be the word "test"');
  return FALSE;
}else{
   return TRUE;
}
}
?>

0 comments:

Post a Comment