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

[eluser]Colin Williams[/eluser]
Maybe Validation ignores fields not in $_POST, but I don't think it does. All I see is a snippet of your controller, so I can't fully assess what the problem is.
#12

[eluser]jleequeen[/eluser]
I just tried using the following:

Code:
function percent_check($str) {
     echo 'Is this getting called at all';
     exit;
}

Just to see if the callback was getting executed at all and it isn't. So, i'm not sure why. Is there something wrong with my validation rules? I'm puzzled as to why the callback won't even run at all, regardless of what logic is in it.

What more code would you like to see? What is in my controller is pretty much it.
#13

[eluser]flojon[/eluser]
I don't think the callback will be called if the field is not in the $_POST array. You could try setting it before the validation...




Theme © iAndrew 2016 - Forum software by © MyBB