I have a bunch of checkboxes each with a unique name and value using $_POST method. How can I put the selected values into an array? I started using a for loop, but I don’t know how to call only one value at a time or determine whether it has been selected.
Share
You want to do something like this:
Check boxes 2 and 4, then at the server side, if you
print_r($_POST['mycheckarray']);, you will get something like this: