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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make post request to php from my vb6 app?

Status
Not open for further replies.

Jason231

MIS
Apr 15, 2006
43
NL
Hi all i wonder if i can make my vb6 application to talk to a php page and send the php page some mysql statment that it executes in remote server.I want to send an HTTP Request, like a POST, with some data for the PHP script to use.I be happy if i get some help here.Thanks
 
Look at the Inet control (Microsoft Internet Transfer Protocol).
You can just put together the URL you would use if you were using a standard webbrowser, and then use the Inet's .OpenURL method to execute it.

Although, if you're going to be allowing a PHP script to accept and execute arbitrary SQL code through an HTTP request... you'll be crying the day some joker finds a way to send a "delete * from" query through.
 
If you dont need to render the page it might make sense to use the object named "xmlhttp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top