Welcome Guest, Not a member yet? Register   Sign In
Adding call back validation to form_validation.php
#1

I am working on a intranet web app and there is one company specific validation needed during form submission. I have done the function but it always returns false. This what it looks like:

PHP Code:
public function check($check){
return 
true;



the error message associated with the function is custom defined in a form validation error langauge file and even tho without doing anything (After failing), the form kept on saying error due to this check up. What am I missing? I see the way the other functions in the form validation helper are constructed and they seem to be working the same way.

Can someone share a light on this one? Even creating a custom validation form (but it is just two validation functions needed so i prefer to include them in the CI validation form)
Reply


Messages In This Thread
Adding call back validation to form_validation.php - by sammyci - 07-26-2015, 05:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB