CI: How can I get the data passed from View to the other View

I am able to fetch the data in the loop on my FirstView.php. Along with the data fetched, there is $i value and the radio button value in the loop. So when the user selects the radio button and submits the forms, I want the value of the radio button and $i to be passed to SecondView.php to show what service has been selected. But, I am only able to get the last value in the loop displayed on my SecondView.php.


"; $i++;}?>

Controller (Booking.php)

public function Booking(){

       $this->form_validation->set_rules('Bk_Option', 'Pleae select one option','required');
       $service = $this->input->post('Bk_Option');
       $this->session->set_userdata('service_selected', $service);
       $hiddentext = $this->input->post('test');
       $this->session->set_userdata('selTest', $hiddentext);

      $data['Cont'] = $this->session->userdata('selTest');      

       $qid  = $this->session->userdata('qid');
       $this->load->view('SecondView'. $data);




Say for example there are four rows fetched on FirstView.php, and I select the second row and the value of $i = 2 and value in the radio button = 200 and click submit, it will show me the correct value of the radio button but the value of $i is 4.

All topic

Options Without Possessions
$i ".$row_quotes_fetched->ori." ". $row_quotes_fetched->dest ." $". round($row_quotes_fetched->sellcost, 2)."
Options With Possessions