I’m trying to use PHP to do this:
<if !empty($list) {echo
.
.
.
?>
And get the result:
Additional options:
<p><input type="checkbox" name="1">1</input></label></p>
<p><input type="checkbox" name="2">2</input></label></p>
.
.
.
<p><input type="checkbox" name="n">n</input></label></p>
</legend>
</fieldset>
Given the context of the question, I am guessing here. But it seems that the you do not understand the checkbox, given that you do not even assign it a value that and this would be a pain to loop through on the form processing end.
Assuming that
$listis an array (borrowing some code from Gazler)Then on your form processing side, it will be easy to loop through the checked boxes like so:
Using this system, it should get you to where you want to be.