历史难题,地址栏传输,通过checkbox判断布尔
<form>
<td> <input type=checkbox name=cc> </td>
<td> <a href=edit.asp?action=sava&id= <%=rs( "m_id ")%> > 编辑 </a> </td>
</form>
....
<%
if request( "action ")= "save " then
...
如何在这里通过checkbox是否被选中来判断布尔值
还有上面地址栏里如何实现传输checkbox是否被选中
...
end if
%>
希望得到帮助
------解决方案-------------------- <script language= "JavaScript " type= "text/javascript ">
<!--
function getLink(Action, id)
{
if (document.form1.cc.checked)
{
window.navigate( "edit.asp?action= "+Action+ "&id= "+id+ "&isChecked=1 ");
return true;
}
else
{
return window.navigate( "edit.asp?action= "+Action+ "&id= "+id+ "&isChecked=0 ");
}
}
//-->
</script>
</head>
<body>
<form name= "form1 ">
<td> <input type=checkbox name=cc> </td>
<td> <a href= "javascript:getLink( 'save ', ' <%=rs( "m_id ")%> ') "> 编辑 </a> </td>
</form>