Welcome Guest, Not a member yet? Register   Sign In
dealing with checkbox
#4

[eluser]überfuzz[/eluser]
[quote author="basty_dread" date="1256393785"]i have many checkbox. it is on a form. usually the checkbox is created using a loop. and the data on the table is load from the database. . thank you for posting uberfuzz.[/quote]
Then you could use the form library in your view-file.

Code:
<?php foreach ($data_array AS $keys => $value): ?>
<p>&lt;?php echo form_radio('erase['.$keys.']','erase'); ?&gt;</p>
&lt;?php endforeach; ?&gt;

Edit, you might wanna echo the name of the checkbox.


Messages In This Thread
dealing with checkbox - by El Forum - 10-24-2009, 01:03 AM
dealing with checkbox - by El Forum - 10-24-2009, 03:09 AM
dealing with checkbox - by El Forum - 10-24-2009, 03:16 AM
dealing with checkbox - by El Forum - 10-24-2009, 03:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB