There are checks in the form that is formed at boot (in php)
<input type="checkbox" value="2"name="bonus[1]" checked> <label>1</label> <br> <input type="checkbox" value="3" name="bonus[2]" checked> <label>2</label> <br> <input type="checkbox" value="24" name="bonus[3]" checked> <label id="fm-16" for="fm-17">3</label> <br> <input type="checkbox" value="25" name="bonus[4]" checked> <label>4</label> by clicking on the sub is processed in the script and then displays the data again on the same page. processing code checks
for ($i = 1; $i < count($list_of_bonus) + 1; $i++) { echo $text = 'bonus['.$i']'; if (isset($_POST[$text])) { echo "зашел"; } } However, it does not process. What is wrong?