05-04-2011, 10:24 AM
[eluser]krislec[/eluser]
All my first radiobox don't return the post value ?
The View :
The Controller:
I get the same problem if I swap the values, so I think there's no problem with my database...
and I can't fix it.
Any Idea ?
All my first radiobox don't return the post value ?
The View :
Code:
<td colspan="2" style="text-align:center;">
<?php
echo form_label('Civilité','civilite');
echo form_radio('civilite','Mr',set_radio('civilite','Mr',set_value('civilite',@$rows->civilite == 'Mr')),'style="margin:0 3px 0 0"');
echo form_label(' Mr.','Mr',array('style'=>'font-style:normal;width:100px'));
echo form_radio('civilite','Mme',set_radio('civilite','Mme',set_value('civilite',@$rows->civilite == 'Mme')),'style="margin:0 3px 0 15px"');
echo form_label(' Mme.','Mme',array('style'=>'font-style:normal;width:100px'));
echo form_radio('civilite','Mlle',set_radio('civilite','Mlle',set_value('civilite',@$rows->civilite == 'Mlle')),'style="margin:0 3px 0 15px"');
echo form_label(' Mlle.','Mlle',array('style'=>'font-style:normal;width:100px'))."
";
?>
The Controller:
Code:
$this->form_validation->set_rules('civilite','Civilité','trim|required|xss_clean');
I get the same problem if I swap the values, so I think there's no problem with my database...
and I can't fix it.
Any Idea ?