title: Get value of radio Button codeigniter
body: <p>I am trying to get the value from a radio button. I have two radio buttons 1 and 2 each having different values. When i print_r on the controller, the value is always of the second radio button even if i select the first radio button
  <strong>View</strong></p>
  
  <pre><code>&lt;input class="payment_method_icon" type="radio" value= "1" name="mode" checked="checked"&gt;
  &lt;input class="payment_method_icon" type="radio" value="2" name="mode"&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>print_r($this-&gt;input-&gt;post());
  </code></pre>
  
  <p>How do i get the correct value of the radio button</p>