注册 登录
编程论坛 ASP技术论坛

我是ASP出学者,下面的代码到是能运行,但是网页最后总是提示语法出错,谢谢各位高手指点啊!

net_meet 发布于 2008-10-13 14:45, 721 次点击
代码如下:


<html>
<head><title>测试A</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<script language="VBScript" type="text/vbscript">
<!--
 Dim score
 score=inputbox("请输入密码:","密码验证")
 if score="123456"  then
   msgbox "密码正确"
 else
   msgbox "密码不正确"
 end if
-->
</script>
</body>
</html>

上传服务器后到是能达到效果,但是最后网页提示: 行2、字符19、语法错误、代码0。。。,请问出错到那里了?
2 回复
#2
nicechlk2008-10-13 18:57
Dim score
score=inputbox("请输入密码:","密码验证")
if score="123456"  then
   msgbox "密码正确"
else
   msgbox "密码不正确"
end if

只留下这个,其他的全部去掉,看看还提示不?
#3
multiple19022008-10-13 19:18
这是ASP么……
还传到服务器……
1