[eluser]jtotheb[/eluser]
I've got some checkboxes that have the name example[] so that the values can go into an array.
What i want to do is store that in the session so they can amend their choice later.
So in the controller we have:
$test = array($_POST['example']);
$this->session->set_userdata($test);
Then in my model i have:
foreach ($this->session->userdata('test') as $key => $value)
etc etc
It errors saying "invalid argument supplied foreach()"
The session data is being stored in the database and i can see it is in there, but i cant see how to get it out!
Any help would be very gratefully appreciated.