[eluser]cideveloper[/eluser]
One thing you need to make sure you do is validate the radio field in the controller. This is part of the design of codeigniter. Even if you just use trim in the set_rules for the specific field. If you post the specific sections of your views and controller more help can be given.
View
Code:
<p>
<label for="like_site">Do you like this site?</label><br />
<input type="radio" name="like_site" value="yes" <?php echo set_radio('like_site', 'yes', TRUE); ?> />
<input type="radio" name="like_site" value="no" <?php echo set_radio('like_site', 'no'); ?> />
<span id="like_site_error"><?php echo form_error('like_site'); ?></span>
</p>
Controller
Code:
$this->form_validation->set_rules('like_site', 'Like/Dislike', 'trim');