Home >Backend Development >PHP Tutorial >Demo code for php to read checkbox array value
Note: The name attribute of the input above has the same content, and they are all 'flags[]'. The reason for adding '[]' is to transfer the content of flags into an array. 2, CheckAction.php file: <?php //读取输出 echo implode(",",$_POST['flags']); ?> |