In order to get a value from the radio buttons, you need to assign them a value
. For example,
<form action="/formHandler" method="post">
$male=array('id'=>'2','name'=>'gen', 'value'=>'m');
$female=array('id'=>'3','name'=>'gen', 'value'=>'f');
echo "<label>Gender : <label>"." ".form_radio($male)."Male".form_radio($female)."Female"."<br>";
<input type="submit">
</form>
Then in the controller you would call
$var = $this->input->post('gen');