复选框的传值问题(郁闷)

153608789 2005-07-22 07:38:50
dreamweaver中,一张web中的复选框,勾选和不勾选的值 为什么传不到另一张web 中呢!
...全文
203 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
153608789 2005-07-22
  • 打赏
  • 举报
回复
谢了,ok啦
kindwell 2005-07-22
  • 打赏
  • 举报
回复
if (!document.Form1.checkbox.checked)
{
alert("不同意条款不能注册!");
document.Form1.checkbox.focus();
return (false);
}
153608789 2005-07-22
  • 打赏
  • 举报
回复
<form method="POST" action="userregpost.asp" name="Form1" onsubmit="return FormCheck();">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="5" >
<td height="19" align="right">相关条例: </td>
<td height="19"><FONT color=#666666><a href="reg1.asp">
<input type="checkbox" name="checkbox" value="checkbox">
阅读生活资讯通网站服务条款</a></FONT><span class="style22">[点击阅读条款]
</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="21" colspan="2" align="center"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="21" colspan="2" align="center">
<input name="submit" type="submit" value="看过并同意服务条款!进行注册">


</tr>
</table>
</center>
</div>
</form>

以下代码怎么不能用啊:

if (document.Form1.checkbox.value =="")
{
alert("不同意条款不能注册!");
document.Form1.checkbox.focus();
return (false);
}
没有选中的时候, 以上 代码应该要执行的啊???
白夜花寒 2005-07-22
  • 打赏
  • 举报
回复
<form action="xx.asp" method="post">

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧