title: passing data from view to a controller in codeigniter
body: <p>well I have a problem. I'm building a list of name.this name are obtained from a mysql query.The controller receives those names from model and after passes to a view and view prints out them in a list.When you click in a name another page opens showing every details about name (phone,ecc...). My problem is how I can do this.I mean I know how create a list this is how I do:</p>
  
  <pre><code>&lt;ul&gt;
  
          &lt;?php foreach ($users as $item): ?&gt;
  
              &lt;li&gt;&lt;a href=""&gt;&lt;?php echo $item-&gt;name . " " . $item-&gt;surname; ?&gt;&lt;/a&gt;&lt;/li&gt;
  
          &lt;?php endforeach; ?&gt;
  
  &lt;/ul&gt;
  </code></pre>
  
  <p>When I click on the link of name and surname I have to go to a page that contains details of that name and surname.How can I do this? I have to pass name and surname to a controller from a view and do a query ?</p>