title: Codeigniter pass value from URL
body: <p>Function receives departure date and adult from view page ( it passes value correctly as I have checked doing echo function ) , but from this function I am not able to pass values to another function </p>
  
  <pre><code>public function index()
  {
  
      if ($data = $this-&gt;input-&gt;post('muktinath')) {
  
          $date = $data['departure_on'];
          $adult = $data['adult'];
  
          $getNameValue = array(
              $date = 'departure_on',
              $adult = 'adult',
          );
  
          redirect('booking/muktinath/' . $getNameValue);
      }
  
      else{
          $this-&gt;load-&gt;view('index');
      }
  }
  </code></pre>
  
  <p>This is the function which must receive the value</p>
  
  <pre><code>public function muktinath($getNameValue)
  {
      echo $getNameValue; 
  
      // here value must be shown of departure date and adult passed from above
  
  }
  </code></pre>