user6509972 user6509972 - 2 months ago 11x
PHP Question

Php form isset with multiple brackets

I have a check box with a name of:

<input type='checkbox' name ='schedule[".$row['id']."][1]' />

I want to check if that check box was selected with a PHP isset(...). I tried isset($_POST['schedule[".$row['id']."][1]]);

But that didn't work. Any ideas on how I could do this?


Try it like:


Simply treat it as multi-D array in this case and edit particular index of schedule key.