I've inherited code which name dynamically created checkbox
<input type='checkbox' name='selectedID' />
with the number '22' changing based on id.
I've tried using the checkbox name in code as in
orCode:if (isset($_POST['sprintf("selectedID[%s]", $id)']))
even hardcoding it asCode:if (isset($_POST['selectedID[' . %s . ']', $id)']))
but all the if statements evaluate to false. How do I get to use the checkbox name in code?Code:if (isset($_POST['selectedID']))