title: Codeigniter pass form value as url segment
body: <p>I have an issue with codeigniter. I want to pass a form value (from a dropdown) as URL segment in the next page. However I have searched high and low but could not find the solution.</p>
  
  <p>Here is my view:</p>
  
  <pre><code>&lt;?= form_open('admin_gallery_upload/upload_images/'); ?&gt;
  &lt;?= form_label('Gallerij', 'gallery_id'); ?&gt;&lt;br/&gt;           
  &lt;?= form_dropdown('gallery_id', $select_dropdown); ?&gt;
  &lt;?= form_submit('submit', 'Volgende',  'class="submit"'); ?&gt;
  &lt;?= form_close(); ?&gt;
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>function upload_images() {
     $gallery_id = $this-&gt;input-&gt;post("gallery_id");
     echo $gallery_id;        
  }
  </code></pre>
  
  <p>So instead of echoing the <code>$gallery_id</code> as done in the controller, it should become the third url segment</p>