Welcome Guest, Not a member yet? Register   Sign In
Dealing with $_POST arrays.
#7

[eluser]billmce[/eluser]
So to flesh that out a bit, what I've got to do is:

- remove the
Code:
foreach ($dataphones->result_array() as $keyname => $phone)
from the VIEW.
- In the controller, prior to loading the view, I create a similar foreach loop to the above -- using it to create my own array.

That takes the result_array() off the form where it gets in the way on re-edits after validation.

I know that after the submit button I can use syntax of $_POST[‘array_name’][0]. In other words I can retrieve all the values in the array after submit. I can also reconstruct the array to be picked up on subsequent iterations of the view.

How/where are serialize and urlencode introduced?

I want to do it right but I don't understand why I need serialize/unserialize and urlencode/urldecode, or where I'd use them (in the controller?, the view?, both?).

Complete newbie question huh?


Messages In This Thread
Dealing with $_POST arrays. - by El Forum - 03-19-2010, 03:01 PM
Dealing with $_POST arrays. - by El Forum - 03-19-2010, 03:19 PM
Dealing with $_POST arrays. - by El Forum - 03-19-2010, 03:25 PM
Dealing with $_POST arrays. - by El Forum - 03-19-2010, 03:32 PM
Dealing with $_POST arrays. - by El Forum - 03-19-2010, 03:59 PM
Dealing with $_POST arrays. - by El Forum - 03-19-2010, 04:08 PM
Dealing with $_POST arrays. - by El Forum - 03-20-2010, 06:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB