在线急等 asp判断单选按钮选中
现在有这么一段语句<%id=request("id")group_id=request("group_id")sql="select*fromadmintablew...
现在有这么一段语句 <% id=request("id") group_id=request("group_id") sql = "select * from admintable where id="&request("id") set rs = conn.Execute(sql) %> <table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" class="tbl1o1"> <form method="post" name="myform" action="?action=SaveEditMight"> <tr> <td height="25" align="center" valign="middle" class="td1"><span class="STYLE15">编辑管理员</span><span class="STYLE2">〖<span class="STYLE15"><%=rs("name")%></span>〗</span><span class="STYLE15">权限</span></td> </tr> <tr> <td height="25" class="td1o1"> <span class="STYLE6">说明:超级管理员可以越过所有权限。请慎重分配好每个管理员的权限。</span><br> <span class="STYLE2"> <input name="chkAll2" type="checkbox" id="chkAll" onClick=SelectAll(this.form) value="checkbox" > 选择所有权限 <% sqlh = "select id,groupname from admin_group order by border desc" set rsh = conn.Execute(sqlh) if not (rsh.bof and rsh.eof) then do while not rsh.eof %> <input name="checkgroup" type="radio" value="<%=rsh("id")%>" onclick="location.href='manageadmin.asp?action=Edit_Might&id=<%=request("id")%>&group_id=<%=rsh("id")%>'" <%if rsh("id")=request("group_id") then response.write "checked" %> > <%=rsh("groupname")%> <% rsh.movenext loop end if rsh.close set rsh=nothing %> </span> 调试了很久,单选按钮就是不选中指定的项目,请高手帮帮忙,万分感谢 本人在线急等 如果解决了,重分感谢!!
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询