在ASP中使用xmlhttp POST,接收页面怎么接收post数据
Function post(url)
dim http
dim postdata
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "POST",url,false
Http.setRequestHeader "CONTENT-TYPE", "application/x-www-form-urlencoded"
postdata="a=123"
Http.send(postdata)
if Http.readystate<>4 then
exit function
end if
End Function
这是页面1.asp的函数(输出了Http.readystate 等于4)
但是在2.asp页面
dim data
data=Request.Form(data=Request.Form("a")也试过了,不行)
response.write data
什么都没收到
各位大手帮忙看下,谢了