I have a form, and inside it there’s a while() with checkboxes.
I wish to have so when you mark and then press submit, the message will remove.
Now, I have the checkboxes, and the submit button and so. Now all my checkboxes are like this:
<input class="cbPick" name="cbPick" type="checkbox" value="<?php echo $id; ?>">
How can i work with that in PHP? Should i do, $_POST[“cbPick”] to know if its marked or not ?
And when i have more with these, how can i know which is which?
Check boxes require the use of an array. PHP will automatically place the checked boxes into an array if you place [] brackets at the end of each name.
Then you can do
PS – This information was found by Googling “Checkboxes PHP” and clicking the first link. I encourage you to do at least a little research in the future before posting a question that has anwers so readily available.