Home > Backend Development > PHP Tutorial > 如何根据6,2,9,13,19这个值,把CHECKBOX打勾

如何根据6,2,9,13,19这个值,把CHECKBOX打勾

WBOY
Release: 2016-06-13 12:54:26
Original
739 people have browsed it

怎么根据6,2,9,13,19这个值,把CHECKBOX打勾?
请问一下:
我在编辑会员信息的时候遇到困难了。
会员信息数据库里有一个字段值是:
6,2,9,13,19
用,号分格起来的。
怎么根据这个值,
把页面的上的,
相应值被打勾?
PHP代码怎么写?
请详细一些,

谢谢~

<br>
<label><input>高级包装1</label><br>
                                              <label><input>高级包装</label><br>
                                              <label><input>办公包装</label><br><br>
                                              <label><input>办公包装1</label><br><br>
                                              <label><input>包装到家</label><br>
                                              <label><input>包装到税关</label><br><br>
                                              <label><input>入住包装</label><br>
                                              <label><input>清扫1</label><br>
                                              <label><input>家挺清扫1</label><br>
                                              <label><input>家庭清扫2</label><br>
                                              <label><input>家庭装修</label> <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template