0

I have a form with check boxes, but if some of the check boxes I are not checked I get undefined index is there a why around this please help. I am using $_POST. :-/

3
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by mundetas
0

Only the check box that is checked will be sent so you can check if it is set like below

if(isset($_POST['check-box-1'])){
//Do something
}

Edited by mike_2000_17: Fixed formatting

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.