回复 2楼 yms123
set Http=server.createobject("Microsoft.XMLHTTP")
postValue = "loginName="&loginName&"&loginPass1="&loginPass1&"&loginPass2="&loginPass2&"&realName="&realName&"&code="&code&"&mobile="&mobile&"&address="&address&"&postcode="&postcode&"&email="&email&"&qq="&qq&"&webUrl=www.
Http.open "GET","http://www.,false
''Http.setRequestHeader"Content-Length",Len(postValue)
Http.setRequestHeader"CONTENT-TYPE","application/x-www-form-urlencoded"
Http.send
retPostValue=Http.responseText
select case retPostValue
case"0"
Response.write"<script language=javascript>alert('注册成功!');window.parent.location.href='http://www.';</script>"
case"1"
Response.write"<script language=javascript>parent.document.getElementById('labelLoginName').innerHTML='<img src=images/regerr.gif> 登录名长度应在6-20位'</script>"
case"2"
Response.write"<script language=javascript>parent.document.getElementById('labelLoginName').innerHTML='<img src=images/regerr.gif> 登录名应该以字母开头,英文或数字组成'</script>"
case"3"
Response.write"<script language=javascript>parent.document.getElementById('labelLoginPass1').innerHTML='<img src=images/regerr.gif> 密码长度应在6-20位'</script>"
case"4"
Response.write"<script language=javascript>parent.document.getElementById('labelLoginPass1').innerHTML='<img src=images/regerr.gif> 密码应该以字母开头,英文或数字组成'</script>"
case"5"
Response.write"<script language=javascript>parent.document.getElementById('labelLoginPass2').innerHTML='<img src=images/regerr.gif> 登录密码与确认密码不一致'</script>"
case"6"
Response.write"<script language=javascript>parent.document.getElementById('labelRealName').innerHTML='<img src=images/regerr.gif> 用户姓名不能为空'</script>"
case"7"
Response.write"<script language=javascript>parent.document.getElementById('labelRealName').innerHTML='<img src=images/regerr.gif> 用户姓名长度不能超过50个字节'</script>"
case"8"
Response.write"<script language=javascript>parent.document.getElementById('labelCode').innerHTML='<img src=images/regerr.gif> 身份证号码填写错误'</script>"
case"9"
Response.write"<script language=javascript>parent.document.getElementById('labelMobile').innerHTML='<img src=images/regerr.gif> 手机号码填写错误'</script>"
case"10"
Response.write"<script language=javascript>parent.document.getElementById('labelEmail').innerHTML='<img src=images/regerr.gif> E-mail填写错误'</script>"
case"11"
Response.write"<script language=javascript>parent.document.getElementById('labelEmail').innerHTML='<img src=images/regerr.gif> E-mail长度不能超过50个字节'</script>"
case"12"
Response.write"<script language=javascript>parent.document.getElementById('labelAddress').innerHTML='<img src=images/regerr.gif> 联系地址不能为空'</script>"
case"13"
Response.write"<script language=javascript>parent.document.getElementById('labelAddress').innerHTML='<img src=images/regerr.gif> 联系地址长度不能超过50个字节'</script>"
case"14"
Response.write"<script language=javascript>alert('该网站不被允许注册,非法操作!');</script>"
case"15"
Response.write"<script language=javascript>parent.document.getElementById('labelLoginName').innerHTML='<img src=images/regerr.gif> 此登录名已经存在'</script>"
case"16"
Response.write"<script language=javascript>parent.document.getElementById('labelCode').innerHTML='<img src=images/regerr.gif> 此身份证号码已被使用'</script>"
case"17"
Response.write"<script language=javascript>parent.document.getElementById('labelEmail').innerHTML='<img src=images/regerr.gif> 此E-mail已被使用'</script>"
case"18"
Response.write"<script language=javascript>alert('网络故障,无法注册!');</script>"
case else
Response.write"<script language=javascript>alert('网络故障,无法注册!');</script>"
End select
Response.End()
End if
是这样么