具体代码如下所示:
复制代码 代码如下:
<%
document=split(rs("document"),",") '这里的逗号取决于你之前保存到数据库中的分割符
function check(temp)
check=""
for i=0 to ubound(document)
if temp=document(i) then
check="checked"
end if
next
end function
%>
<input name="checkbox" type="checkbox" value="asp" <%=check("asp")%>>
<input name="checkbox" type="checkbox" value="java" <%=check("java")%>>
<input name="checkbox" type="checkbox" value="php" <%=check("php")%>>
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!