If there are multiple checkboxes with the same name in a form, there will only be one value when submitted to php, not a series of values separated by commas like asp. There is a very simple way to solve it: add [] after the name of the check box, for example: changed to: . In this way, php will get an array called ccc. But there is a problem with this method. If you want to use JavaScript to judge whether the check box is selected and how many are selected on the client, JavaScript will make an error because the name of the check box contains []. You can add a hidden field to the form and set its value using JavaScript.
...
...