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

Input Data to Website

Status
Not open for further replies.

Zoiked

Programmer
May 6, 2007
2
US
How do I input data into a textbox thats on a website from my website. Heres a overview of my program, the user inputs his data, the data is put in the textbox on the website, then the delphi program will click the submit button and then my delphi button will receive the outputted data.

Are there are example sources, or what should I search in google to do this? I am figuring you are going to use the TWebBrowser component.
 
I would only use a TWebBrowser solution as a last resort. The textbox on the website will be part of an html form - does the form use GET or POST? If it uses GET then you can simply build a url with the text box content included in it and send it from your delphi app (using something like Indy's IdHTTP component) to the web server. If the form uses POST you can append the data to the HTTP request (see thread102-627709 for more info). The response can then be received via the same mechanism (i.e. IdHTTP).

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top