Transferred from: http://blog.csdn.net/vip_linux/article/details/22975713
In PHP development, how do I get the selected value of the CheckBox control on the previous page? and output it.
Here is an example of PHP getting the value of the checkbox, and the method of getting the value of the checkbox check box in PHP.
-
- $music = $_post [' music '];
- //Get the number of checkboxes selected
- $coun = Count ( $music );
- if ( Is_array ( $music )) {
- Echo ' You have chosen: ';
- foreach ( $music as $key = $var)
- Echo ' ['. $var . ']';
- Echo $key;
- } //Script Academy Edit finishing
- ?>
http://www.bkjia.com/PHPjc/749823.html www.bkjia.com true http://www.bkjia.com/PHPjc/749823.html techarticle from: http://blog.csdn.net/vip_linux/article/details/22975713 in PHP development, how do I get the value of the CheckBox control selected on the previous page? and output it. Here to share a ...