CodeIgniter Forums
radio button value issue? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: radio button value issue? (/showthread.php?tid=59099)



radio button value issue? - El Forum - 08-23-2013

[eluser]Xeroxeen[/eluser]
hi in my CI website i'm using radio buttons.I'm getting the values and save it in the database.But when i get the values it's giving the same value 0.9,Why is that.These are my code parts.

Controller

Code:
if($_POST){
                
                $inputdata=array(
                          'radioValue'=>$this->input->post('radiovalue'),    
                );}

View

Code:
<?php echo form_open('Index/radioFunction');?>
<?php echo 'Very Bad';echo form_radio('radio', '1', FALSE);?>
<?php echo form_radio('radio, '2', FALSE);?>
<?php echo form_radio('radio', '3', FALSE);?>
<?php echo form_radio('radio', '4', FALSE);?>
<?php echo form_radio('radio', '5', FALSE);echo 'Very Good';?>
<br>
&lt;?php echo form_submit(array('name'=>'radiosubmit','value'=>'Rate', 'class'=>'custom'));?&gt;

Model is working properly.So issue should be on both above parts.

Please help me????


radio button value issue? - El Forum - 08-24-2013

[eluser]Xeroxeen[/eluser]
Finally could solve it.Was a small issue with a variable.So i marked the thread as closed