Welcome Guest, Not a member yet? Register   Sign In
Split Form Validation
#3

[eluser]danmontgomery[/eluser]
You can just call one callback in form_validation, and nest the rest within that one.

Code:
function callback_function1($str) {
    if(some_validation) {
        return $this->callback_function2($str);
    }

    return false;
}

function callback_function2($str) {
    if(some_more_validation) {
        return true;
    }

    return false;
}


Messages In This Thread
Split Form Validation - by El Forum - 02-12-2010, 12:46 PM
Split Form Validation - by El Forum - 02-12-2010, 03:51 PM
Split Form Validation - by El Forum - 02-12-2010, 03:54 PM
Split Form Validation - by El Forum - 02-12-2010, 04:30 PM
Split Form Validation - by El Forum - 02-12-2010, 04:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB