So, I have a couple of check boxes in my $_POST array and I want to see if they are checked or not. Then I would like to print out the ones that are checked. How would I got about doing this?
So, I have a couple of check boxes in my $_POST array and I
Share
Usually, the way we play with checkbox is, by using arrayed name like this:
This way, we can easily determine if someone checked our checkbox by using:
This is mainly because browser doesn’t send checkbox value that doesn’t checked.