Welcome Guest, Not a member yet? Register   Sign In
Two Values With Form Rule Callback?
#1

[eluser]ShoeLace1291[/eluser]
I have a login form. I want the form to first see if the login email exists in the database. If it does exist, and ONLY if it does exist, I want it to compare the entered password to the actual password to see if it's correct. Instead of calling the email check function and checking the password inside that function, is there a way to execute another function based on a true/false for the first function?
#2

[eluser]Colin Williams[/eluser]
Here's a basic prototype:

Code:
if ($condition == TRUE) {
  $this->_function_to_call();
}




Theme © iAndrew 2016 - Forum software by © MyBB