[eluser]elmne[/eluser]
I'm trying to add session data using the Hybrid session like this
Code:
$newdata = array(
'arrival_date' => $this->input->post('arrival_date'),
'departure_date' => $this->input->post('departure_date')
);
$this->session->set_userdata($newdata = array(), $newval = '');
And i try to display it like this
Code:
<?php echo $this->session->userdata($arrival_date) ?>
But i get the following error message
Quote:Message: Undefined variable: arrival_date
How do i get to store information in the session then call it for display?
I created the session in the controller contructor using
Code:
$this->session->sess_create();