how to show multiple checkboxes checked in Core PHP Edit Page:
ps: array data
<?php
$tenses = mysqli_query($conn, "SELECT * from tenses");
if(sizeof($tenses) > 0)
{
foreach($tenses as $tens)
{
?>
<div class="span3" style="margin-left:30px;">
<label class="checkbox-inline"><input type="checkbox" name="tenses[]" value="<?php echo $tens['pktenseid']; ?>"> <?php echo $tens['tense_name']; ?></label></div>
<?php
}
}
?>
</div>
Aucun commentaire:
Enregistrer un commentaire