以下是随手写的,没测试过
var str:string;
user,pass:string;
begin
user:='admin';
pass:='123456';
str:=idhttp1.get('http://www.xxx.com/chk.asp?user=' + user + '&pass=' + pass);
if str='1' then showmessage('验证通过') else showmessage('验证失败');
end;
ASP
<%
dim user,pass,Conn,Rs
user=request("user"
pass=request("pass"
Set Conn = Server.CreateObject("ADODB.Connection"
Conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("test.mdb"
set rs=server.createobject("adodb.recordset"
rs.open "Select * FROM [ChkTable] WHERE User='"& user &"'",conn,1,1
if rs.eof then
response.write "0"
else
if rs("pass"
=pass then
response.write "1"
else
response.write "0"
end if
end if
rs.close
set rs=nothing
set conn=nothing
%>