[eluser]fuji2009[/eluser]
Hello guys, i don t understand how work checkbox i do it :
View :
Code:
<tr>
<td>
<input type="checkbox" name="mycheck" value="<?php echo set_value('mycheck');?>" >
</td>
</tr>
<tr><td><?php echo form_error('mycheck','<div class="error">','</div>');?></td></tr>
and my controller :
Code:
$this->form_validation->set_rules('mycheck', 'Mycheck', 'required');
But the error work when i validate without check the box but when i check the box error again..
can you help me ? thanks you