navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

AspHTTP

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> AspHTTP
Page: [1]
 
Joey

 

Posts: 167
Joined: 5/15/2002
From:
Status: offline

 
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

 

Posts: 167
Joined: 5/15/2002
From:
Status: offline

 
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?



< Message edited by Joey -- 1/21/2008 0:18:26 >

(in reply to Joey)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> AspHTTP
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts