Welcome Guest, Not a member yet? Register   Sign In
radio button value issue?
#1

[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????
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB