Form Data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Form Data (/showthread.php?tid=10811) |
Form Data - El Forum - 08-13-2008 [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? Form Data - El Forum - 08-13-2008 [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! ) Form Data - El Forum - 08-14-2008 [eluser]Randy Casburn[/eluser] it is true Colin. |