Dear All,
I am new in CI, in my asking if anything wrong i appologies at first.
I want to Update/ Edit a Form with Checkbox and Option, At form submit i want to validate these. After validaiton if there is error, i want to have remain my Selected Checkbox CHECKED at Edit Form.
Instead of this the Checkbox is Checking according to the pulling Database Value. I need your kind support for this solution. i used the following code. But if you have your good advices or coding please,
<input type="checkbox" name="M0140" value="1" <?php echo ($result->M0140== "1" ) ? "checked" : set_checkbox('M0140, '1',$result->M0140== "1"); ?> size="1">Highly expecting your kind support. Thanking you in advance…….!!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.