主题:求助?//?////?/
<!--#--include file="conn.asp"-->
<%
dim rs
dim i
dim id
dim pwd
id=trim(request.Form("uid"))
pwd=trim(request.form("pwd"))
if (id=""or pwd="") then
response.redirect("denglu.asp")
response.end
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from yonghu where username='"&amp;amp; id &amp;amp;"' and password='" &amp;amp; pwd &amp;amp;"'",conn
if rs.eof then
Response.write("error")
Response.end
else
response.cookies("id")=id
response.cookies("quanxian")=rs("quanxian")
response.cookies("passed")="passed"
response.Redirect("xianshi.asp")
end if
%>
总是说Response.write("error")有错怎么回事 说无效字符
<%
dim rs
dim i
dim id
dim pwd
id=trim(request.Form("uid"))
pwd=trim(request.form("pwd"))
if (id=""or pwd="") then
response.redirect("denglu.asp")
response.end
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from yonghu where username='"&amp;amp; id &amp;amp;"' and password='" &amp;amp; pwd &amp;amp;"'",conn
if rs.eof then
Response.write("error")
Response.end
else
response.cookies("id")=id
response.cookies("quanxian")=rs("quanxian")
response.cookies("passed")="passed"
response.Redirect("xianshi.asp")
end if
%>
总是说Response.write("error")有错怎么回事 说无效字符