AspHTTP (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


Joey -> AspHTTP (1/20/2008 1:16:28)

Anyone know how i would use Request.Form to capture incoming data and use it in the HTTPObj.PostData

Set HttpObj = Server.CreateObject("AspHTTP.Conn")
HTTPObj.Url = "http://www.myfinancialpage.com/scripts/update3.asp"
HTTPObj.PostData = "suid=jimb&pwd=macabre&id=32&val=1.5"
HTTPObj.RequestMethod = "POST"
strResult = HTTPObj.GetURL


i tried a couple of variations unsucsessfuly

suid=Request.Form("suid")&pwdRequest.Form("pwd")&id=Request.Form("ID")&

The post back works perfectly with static HTTPObj.PostData but i need dynamic info




Joey -> RE: AspHTTP (1/20/2008 23:52:21)

Got it to work with this:

 " & (Request("suid")) &"&pwd= " &


Now i need to query my database and return a message based on the suid, i tried to include the asphttp post code into a drw but it doesnt work.

 " & (Request("suid")) &"&Message= " & (FP_FieldVal(fp_rs,"message")) &


anyone know how to query a database based on the ID and return a database field in the post back?





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875