100分求解这里代码哪出错了
<%@LANGUAGE="VBSCRIPT" %>
<%
Dim name,word,conn,rs,DBPath
name = Request("name")
word = Request("word")
DBPath = "abc.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.RecordSet")
On Error Resume Next
conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(DBPath)
If Err.Number <> 0 Then
Err.Clear
Set conn = Nothing
Response.Write("连接错误")
End If
rs.open "select * from abc where Name='" & name & "' and Word='" & word & "'",conn,1,1
If rs.recordcount=0 Then
response.write(name & "H" & word & "=flase")
Else
response.Write(name & "H" & word & "=true")
End If
rs.Close
set rs = Nothing
%>
如上是我根据网上查找的远程ASP连接ACCESS数据库查找相关条目是否存在的 aab.asp 文件里的代码,假设存放位置为http://www.abc.com/aab.asp ,我的abc.mdb 里的数据满足搜索下方搜索条件,就是说本来应该都是返回 true
我在电脑A 上VB里面编写 MsgBox Inet1.OpenURL("http://www.abc.com/aab.asp?name=测试一下&word=2")
发送后 返回值为 测试一下H2=true
但是在电脑B上(这台电脑没安装VB,只是用打包程序执行)同样程序运行后返回的值是 ??H2=flase
请问这是什么原因呢?是不是因为我的ASP文件上没申明接受什么类型的文字?比如UTF-8什么的,这些不太了解,麻烦高手指点下,谢谢