echo selected value of chekbox group after submit
Hello
I tried to find and figure our how to echo the selected value of checkbox group after submit but failed to figure it out, pls help me.
the checkbox code is as below;
<?php
$wa_startindex = 0;
while(!$booksList->atEnd()) {
$wa_startindex = $booksList->Index;
?>
<label class="form-check-label pl-3">
<input name="book[]" type="checkbox" class="form-check-input" value="<?php echo($booksList->getColumnVal("BookID")); ?>"><?php echo($booksList->getColumnVal("BookNameBD")); ?>
</label>
<?php
$booksList->moveNext();
}
$booksList->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>