Welcome Guest, Not a member yet? Register   Sign In
Validation Rules
#11

[eluser]xtremer360[/eluser]
I'm wondering if I even need that $str in the function parenthesis
#12

[eluser]CroNiX[/eluser]
Maybe if you read what I wrote a little closer it would help you. You seem to do this a lot...responding too fast without really absorbing what people are trying to help you with.

Compare your code to mine. Read the notes. Pay close attention to where I am setting the error message.
#13

[eluser]xtremer360[/eluser]
This is frustrating I did this because I was sure this was it but apparently isn't.

Code:
public function _username_exists($username)
{
  if ($this->users_model->is_username_available($username))
  {
   $this->form_validation->set_message('username', 'Testing2');
            return FALSE;
  }
  else
  {
   return TRUE;
  }
}
    
    public function _email_address_exists($email_address)
{
  if ($this->users_model->is_email_address_available($email_address))
  {
   $this->form_validation->set_message('email_address', 'Testing2');
            return FALSE;
  }
  else
  {
   return TRUE;
  }
}
#14

[eluser]CroNiX[/eluser]
And....again, you didn't do what I suggested.

#15

[eluser]xtremer360[/eluser]
A ha now I got it to show the error however I'm not sure why those two functions are returning False. Which means I probably have to switch them.
#16

[eluser]CroNiX[/eluser]
It could have something to do with the error message from my first post in this thread.




Theme © iAndrew 2016 - Forum software by © MyBB