诛仙3破军元婴8定5:if len(usern)<=3 then这两句有没有错???

来源:百度文库 编辑:高校问答 时间:2024/05/09 19:26:31
if len(usern)<=3 then
erra="用户名长度不能小于4个字符!"
response.redirect "reerror.asp?errb=erra"
end if
if len(userp)<6 then
erra="用户名长度不能小于6个字符!"
response.redirect "reerror.asp?errb=erra"
end if

这么改

if len(usern)<=3 then
erra="用户名长度不能小于4个字符!"
response.redirect "reerror.asp?errb=" & erra
end if
if len(userp)<6 then
erra="用户名长度不能小于6个字符!"
response.redirect "reerror.asp?errb=" & erra
end if