i'm gettimg this error on my page while modifying checkbox : Notice: Undefined index: selected in....[my file location] anyone know what had gone wrong?
this is part of my script:
<?php
if(!empty($konfirm))
{
foreach ($konfirm as $konfirm) { ?>
<tr>
<td style="text-align: center;"><?php if ($konfirm['selected']) { ?>
<input type="checkbox" name="selected[]" value="<?php echo $konfirm['id']; ?>" checked="checked" />
<?php } else { ?>
<input type="checkbox" name="selected[]" value="<?php echo $konfirm['id']; ?>" />
<?php } ?></td>
am i missing something? Please give me your direction.. Tell me if my description wasn't clear enough. Thank You very much.