Welcome Guest, Not a member yet? Register   Sign In
Updating from 1.6.3 to 2.1.0 - getting validated POST data
#4

[eluser]potion[/eluser]
[quote author="dallen33" date="1329072872"]Should be okay, but you might want to read up on the guide...[/quote]
Surprisingly, the guide does not show an example of using the POST data.

My assumption is that the method form_validation->run() reads and validates the POST data, and the method subsequently used to fetch the POST data is arbitrary. The old validation->run() also worked on the POST data, but using $this->validation->my_form_field validated the field again, and was deemed redundant.

I think it's safe to use $this->input-post(my_form_field) without fear of the reworked 2.1.0 code being any less robust than it's predecessor.

< : ) den


Messages In This Thread
Updating from 1.6.3 to 2.1.0 - getting validated POST data - by El Forum - 02-12-2012, 11:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB