php处理checkbox复选框参数

php处理checkbox复选框参数

解决方法:

1.页面标签,name的命令

<ul >

<li style="float: left;margin-right: 5px;"><label><input style="vertical-align: middle" type="checkbox" name="gouwutype[]" value="fz">服装</label></li>

<li style="float: left;;margin-right: 5px;"><label><input style="vertical-align: middle" type="checkbox" name="gouwutype[]" value="xb">鞋包</label></li>

</ul>

2.php后台,使用implode把数组转逗号隔开的字符串

http://www.yayihouse.com/yayishuwu/chapter/1879

猜你喜欢

转载自blog.csdn.net/qq_30908729/article/details/89598435