[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>
<?php echo form_submit(array('name'=>'radiosubmit','value'=>'Rate', 'class'=>'custom'));?>
Model is working properly.So issue should be on both above parts.
Please help me????