<form action="<!--{$baseurl}-->?admin=user&func=selectType" method="post"  >
    <div class="morefunc" id="morejs">
<!--{foreach from=$logo item=logo}-->
      <label><input name="select[]" style="height:25px;width:40px;margin-left:-10px;" type="checkbox" value="<!--{$logo.msg_type_name}-->" /> <p style="margin-top:-22px; margin-left: 22px;"><!--{$logo.msg_type_name}--></p></label>  
<!--{/foreach}-->
     </div>
<label><input type="submit" value="确定"  class="say" onclick=" tolerate" style="margin-left:-13px;margin-top: 30px;"  /></label>
</form>
<input type="button"  onclick="morefunc()" id="morebtn" value="更多>>" style='border-left:0px;border-top:0px;border-right:0px;border-bottom:1px;margin-top:-33px;margin-left:-135px;margin-bottom:10px;'>
 

解决方案 »

  1.   

    <label><input name="select[]" style="height:25px;width:40px;margin-left:-10px;" type="checkbox" value="<!--{$logo.msg_type_name}-->" /> <p style="margin-top:-22px; margin-left: 22px;"><!--{$logo.msg_type_name}--></p></label>  
    中你需要有地方设置 checked
      

  2.   

    就是我点击了这个checkbox,传到C层,在C层判断,没到数据库。然后刷新一下页面,checkbox还是选中状态
      

  3.   

    那就在点击选中的时候 ajax 把选中的值 传到c层 去判断 然后根据判断结果在返回给页面,就行了、、