echo selected value of chekbox group after submit
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;
$wa_startindex = 0;
$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")); ?>
$booksList->moveFirst(); //return RS to first record