Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Post data to a web page from Visual Basic

Status
Not open for further replies.

vukhanhnguyen

Programmer
Jan 14, 2003
2
US
I am looking for a way or a component so I can post data into a web page from a Visual Basic application.

For instance,
I need to post data into an URL, e.g
Instead of manually typing data, I'd like to build an Visual Basic application in which I can retrieve data from a database, then post them onto the page or simulate the post directly to the web page.

Thanks in advance,

Brian Nguyen
 
You could use the XMLHTTP object (from msxml3) to post data to the webpage. With this component, you can do a HTTP POST request to your webpage, and send data with the request. It's something like
Dim objXmlHttp As MSXML2.XMLHTTP
Set objXmlHttp = New MSXML2.XMLHTTP

objXmlHttp.Open "POST", " false
objXmlHttp.Send(MyData)

On the webpage, have some function extract the data that was sent. Hope this gets you started!

<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top