In PHP, we generally use the array form to do the checkbox checkbox. In this way, when we get the checkbox value in PHP, we will store it in the array form, so we only need to traverse the array to achieve it.
php code
The code is as follows
|
Copy code
foreach($_POST['year'] as $item){
echo $item." ";
}
?>
http://www.bkjia.com/PHPjc/633081.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/633081.htmlTechArticleIn php, we generally use the array form to get the checkbox checkbox. We will store the selection box value in the form of an array, so we only need to traverse the array to achieve...
|
|