Welcome Guest, Not a member yet? Register   Sign In
Form Data
#1

[eluser]bennyhill[/eluser]
I followed the validation section of the documentation and I have my form working. Where is the prepped data located on successful validation? Is it put back into the $_POST array? Or is it stored in the $fields array?

Is it better practice to send the array of form values to the model for database insertion?
#2

[eluser]Colin Williams[/eluser]
From what I understand, prepped/validated data can be accessed in $_POST, $this->input->post() and $this->validation->{field_name}... so it really doesn't matter where you access the info AFTER $this->validation->run()

I think Michael Wales pointed that out to me. I haven't tested it out nor have I peeked the Validation class to see if this is accurate. Easy enough to test (would actually require less typing than needed to post your thread! Smile)
#3

[eluser]Randy Casburn[/eluser]
it is true Colin.




Theme © iAndrew 2016 - Forum software by © MyBB