Welcome Guest, Not a member yet? Register   Sign In
Question: SESSION and ARRAY
#2

[eluser]Michael Wales[/eluser]
No testing involved, just off the top of head.
Code:
$sess_data = array(
  $this->input->post('title') => array(
    'description'=>$this->input->post('description'),
    'number_of'=>$this->input->post('number_of'),
    'place'=>$this->input->post('place')));
$this->session->set_userdata($sess_data);

Theoretically, when you retrieved this session variable it would be an array (although you'll need to know what the title is):
Code:
list($description, $number_of, $place) = $this->session->userdata('this_is_the_title');


Messages In This Thread
Question: SESSION and ARRAY - by El Forum - 07-30-2007, 04:57 PM
Question: SESSION and ARRAY - by El Forum - 07-30-2007, 05:10 PM
Question: SESSION and ARRAY - by El Forum - 07-31-2007, 04:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB