标签:
$attr = array(
array("n001","汉族"),
array("n002","回族"),
array("n003","苗族"),
array("n004","维吾尔族"),
);
1.要求用下拉列表的样式显示在页面上
2.要求用checkbox/radio 列表 显示在页面上
<?php $a=array( array("n001","汉族"), array("n002","回族"), array("n003","苗族"), array("n004","维吾尔族") ); foreach($a as $b) { echo "<input type=‘checkbox‘/>{$b[0]}{$b[1]}"; } ?>
标签:
原文地址:http://www.cnblogs.com/zoubizhici/p/5558931.html