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

Calling a web form from Delphi with Post information: How to do?

Status
Not open for further replies.

CHeighlund

Programmer
Jun 11, 2007
163
US
A lot of the stuff I work with in Delphi is supposed to call up web-based php forms. In the past, I've done this with ShellExecute and the URL, sometimes including '?X=Y' to activate $_GET information. How would I go about building a similar call so that, instead of using the $_GET setup, I could use the $_POST setup instead? I'm getting nervous about having information sitting inside the URL, since anyone with access to the form could go back and swipe a couple of bits of information I'd rather not be leaving out.
 
POST information is given via STDIN. Change your webform from GET to POST and you should be set. The environment variable CONTENT_LENGTH holds the number of characters to be read. When you read the data, the variables will look the same as they do in GET.

----------
Those who work hard are rewarded with more work and remembered come time to downsize. Those who hardly work are given a paycheck and ignored completely.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top