Welcome Guest, Not a member yet? Register   Sign In
Issue with Validation library
#9

[eluser]Colin Williams[/eluser]
Very odd. Your code looks fine. And the set_fields() method already does what gon does in his extension:

Code:
foreach($this->_fields as $key => $val)
        {
            $this->$key = ( ! isset($_POST[$key])) ? '' : $this->prep_for_form($_POST[$key]);
            
            $error = $key.'_error';
            if ( ! isset($this->$error))
            {
                $this->$error = '';
            }
        }

You can clearly see that $this->validation->field is either '' or the posted value, but never undefined..

I'm at a loss, cause I have very similar code in a 1.6.3 site right now that isn't throwing errors.


Messages In This Thread
Issue with Validation library - by El Forum - 07-11-2008, 04:42 AM
Issue with Validation library - by El Forum - 07-11-2008, 04:45 AM
Issue with Validation library - by El Forum - 07-11-2008, 05:01 AM
Issue with Validation library - by El Forum - 07-11-2008, 12:00 PM
Issue with Validation library - by El Forum - 07-13-2008, 11:45 PM
Issue with Validation library - by El Forum - 07-14-2008, 03:46 AM
Issue with Validation library - by El Forum - 07-14-2008, 06:02 AM
Issue with Validation library - by El Forum - 07-14-2008, 06:22 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:02 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:03 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:09 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:22 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:57 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:17 PM
Issue with Validation library - by El Forum - 07-14-2008, 10:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB