<volist name="list" id="vo">
<li><h2>{kidslogs:$vo.Name}<input type="checkbox" name="stu_id[]" value="{kidslogs:$vo['id']} " /></h2></li>
</volist>
<br>
<li> <input id="checkAll" type="checkbox" />全选</li>
<input type="submit" value="提交" name="sbmt" class="form_submit radius4 darkblue">
</form>
后台用 $tea=$_POST["stu_id"];print_r($tea);die;输出无效 在firebug上面可以看到post的值 求解是上面原因啊
一个是检查你产生的checkbox的id是否正确。
再一个,用fiddler调试下,看看checkbox的值有没有被浏览器发送过去。
抓包分析一下,看数据是否都发送过去了。
postman模拟发送数据看看
http://chromecj.com/web-development/2014-09/60.html
题主说明了用firebug看到post数据了,所以排除提交不上的错误。个人认为 你的字段名写错了
}
改成name="stu_id"