asp註冊審核密碼電子郵件不起作用!(50分)

  • 主题发起人 williamguo188
  • 开始时间
W

williamguo188

Unregistered / Unconfirmed
GUEST, unregistred user!
<html>
<head>
<meta http-equiv=&quot;Content-Type&quot;
content=&quot;text/html;
charset=big5&quot;>
<title>check件</title>
</head>
<body>
<script language=&quot;VBScript&quot;
>
sub check()
if frm1.password1.value=empty then

msgbox &quot;&#63384;怀&#63541;蠟腔躇鎢ㄐㄐ&quot;
focusto(2)
exit sub
end if
if frm1.password1.value<>frm1.password2.value then

msgbox &quot;蠟謗棒怀&#63541;腔躇鎢祥淏&#63489;ㄐㄐ&quot;
focusto(3)
exit sub
end if
if frm1.email.value=empty then

msgbox &quot;&#63384;怀&#63541;蠟腔萇赽蚘璃,眕晞扂蠅睿蠟薊炵ㄐ&quot;
focusto(4)
exit sub
end if
if instr(frm1.email.value,&quot;@&quot;)=0 then
msgbox &quot;斕腔萇赽蚘璃祥勤韃 羶衄 @ &quot;
focusto(4)
exit sub
end if
if instr(frm1.email.value,&quot;.&quot;)=0 then
msgbox &quot;斕腔萇赽蚘璃祥勤韃 羶衄 . &quot;
focusto(8)
exit sub
end if

frm1.submit
end sub
sub focusto(x)
document.frm1.elements(x).focus()
end sub
</script>
<table width=&quot;300&quot;
border=&quot;1&quot;
align=&quot;center&quot;>
<tr><td>用戶註冊系統,歡迎註冊成會員!</td></tr>
<tr><td>
<form name=&quot;frm1&quot;
method=&quot;post&quot;
action=&quot;reg1.asp&quot;>
<table width=&quot;300&quot;
border=&quot;0&quot;
align=&quot;center&quot;>
<tr><td width=&quot;100&quot;>用戶名:</td><td><input name=&quot;name&quot;
type=&quot;text&quot;
id=&quot;name&quot;
size=&quot;20&quot;><font color=&quot;#FF0000&quot;>*</font></td></tr>
<tr><td width=&quot;100&quot;>輸入密碼:</td><td><input name=&quot;password&quot;
type=&quot;password&quot;
id=&quot;password&quot;
size=&quot;20&quot;></td></tr>
<tr><td width=&quot;100&quot;>確認密碼:</td><td><input name=&quot;password1&quot;
type=&quot;password&quot;
id=&quot;password1&quot;
size=&quot;20&quot;></td></tr>
<tr><td width=&quot;100&quot;>電子郵件:</td><td><input name=&quot;email&quot;
type=&quot;text&quot;
id=&quot;email&quot;
size=&quot;20&quot;></td></tr>
<tr><td width=&quot;100&quot;>msn/qq:</td><td><input name=&quot;qq&quot;
type=&quot;text&quot;
id=&quot;qq&quot;
size=&quot;20&quot;></td></tr>
<tr><td width=&quot;100&quot;><input name=&quot;submit&quot;
type=&quot;submit&quot;
size=&quot;10&quot;></td><td><input name=&quot;reset&quot;
type=&quot;reset&quot;
size=&quot;10&quot;></td></tr>
</table>
</form>
</td></tr>
</table>
</body>
</html>
請高手指點密精!
 
問題就是:我不輸入任何內容,都可進入reg1.asp?
我的目的是想通過sub check()控制,註冊用戶必須輸入&quot;用戶名/兩次密碼一樣/電子郵件&quot;才能進入reg1.asp頁面!
我上面代碼不起作用,不能對&quot;用戶名/兩次密碼一樣/電子郵件&quot;進行審核,請指點?
 
怎麼沒有人能解決這個問題呀?
 
你随便找个有script验证的html页面,打开源码看看就行了。
 
我自己搞定了
 
接受答案了.
 
顶部