我的ASP程序为什么执行不下去,帮忙啊

来源:百度知道 编辑:UC知道 时间:2024/06/27 08:48:34
登陆时用户名和密码已经输入进去,也点了登陆,可页面就停止了,地址栏显示“http://localhost/netclass/inc/slogin.asp?name=0600092&pwd=0600092
高手帮忙啊,代码如下
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/conn.asp" -->
<%
tname = request.QueryString("name")
tpwd = request.QueryString("pwd")
Sql = "SELECT * FROM Student WHERE name = '"&tname&"'"
Rs.open Sql,conn,1,1
if not rs.eof then
if rs("term")<>term then
response.write"你不是本学期的选课学生!<br><a href=../index.asp>返回</a>"
response.end
end if

if rs("password")<>tpwd then
response.write"用户名或密码有错误!<br><a href=../index.asp>返回</a>"
response.end
end if

if rs("term")=term and rs(&quo

term
没有赋值。。。所在停止。。

提示什么错误?

term变量还没有赋值能。怎么就能调用了呢。

rs.ActiveConnection = conn
这句不用,你只要在页前引用CONN的连接串,RS的时候 Rs.open Sql,conn,1,1
CONN已经进去了!
你第一次提的问,账号(tname的值)不在数据库中就显示的空白页!