Welcome Guest, Not a member yet? Register   Sign In
Are $this->input->post() and set_value interchangeable?
#2

[eluser]RaF007[/eluser]
I might be wrong but I think you can only grab the whole array at once using $this->input->post(). Let's say your POST contains an array FIELD containing several values (FIELD[0], FIELD[1], ...), you would have to do the following:

Code:
// WILL NOT WORK
echo $this->input->post('FIELD[0]');

// THIS SHOULD WORK
$myarray = $this->input->post('FIELD');
echo $myarray[0];
echo $myarray[1];

If I'm incorrect, I'm interested into seeing a solution for this as well.


Messages In This Thread
Are $this->input->post() and set_value interchangeable? - by El Forum - 01-13-2009, 07:05 PM
Are $this->input->post() and set_value interchangeable? - by El Forum - 01-14-2009, 02:22 AM
Are $this->input->post() and set_value interchangeable? - by El Forum - 01-14-2009, 03:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB