VBSCRIPT在ASP中无效的问题!!!

来源:百度知道 编辑:UC知道 时间:2024/05/21 03:59:23
<script language=vbscript>
<!--
sub tijiao_onclick()
if len(login.userpw.value)<4 then
msgbox"密码太短,请选择一个长度大于4的密码"
login.userpw.select
exit sub
end if
if login.userpw.value<>login.verifypw.value then
msgbox"确认密码和密码不同,请确认"
login.userpw.value=""
login.verifypw.value=""
login.userpw.select
exit sub
end if
-->
</script>
<html>
<head>
<title>注册新会员</title>
</head>
<body leftmargin=20 class=class2>
<span class="style5"><font color="#ff0000">您 的 位 置 : 注 册 页 面    注意:带*的项目为必填项目</font></span>
<br>
<hr color="#999933" size=1>
<form method="post" action="add.asp" name="login">

密 码:
<input type="password" name="us

<script language=vbscript>
<!--
function tijiao_onclick()
if len(login.userpw.value)<4 then
msgbox"密码太短,请选择一个长度大于4的密码"
login.userpw.focus
tijiao_onclick=false
exit function
end if
if login.userpw.value<>login.verifypw.value then
msgbox"确认密码和密码不同,请确认"
login.userpw.value=""
login.verifypw.value=""
login.verifypw.focus
tijiao_onclick=false
exit function
end if
tijiao_onclick=true
end function
-->
</script>
<html>
<head>
<title>注册新会员</title>
</head>
<body leftmargin=20 class=class2>
<span class="style5"><font color="#ff0000">您 的 位 置 : 注 册 页 面 注意:带*的项目为必填项目</font></span>
<br>
<hr color="#999933" size=1>
<form method="post" action="add.