Welcome Guest, Not a member yet? Register   Sign In
codigniter check username and email availability problem
#3

[eluser]DarkManX[/eluser]
Hi,

you probably didnt get it right. Just study the manuels again and try some stuff. You have done some nerd coding i dont understand. Big Grin All you need is:

Code:
$this->load->library('form_validation');
$this->form_validation->set_rules('username','Username','is_unique[register.username]');
$this->form_validation->set_message('is_unique','The %s got to be unique');

if(!$this->form_validation->run()){
  // do something when not valide
}else{
  // do when valide
}


Messages In This Thread
codigniter check username and email availability problem - by El Forum - 08-15-2012, 02:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB