I want to do something simple: post data from VFP to a cgi script which generates a webpage with a Form on it, and have that form filled in already.
In otherwords, I want pre-populate a form on a webpage from VFP. That webpage is built on the fly by a cgi script.
I am on VFP 7.0
I have but I can't seem to figure out how to implement this idea with it.
I have the cgi script all set up and working --- including populating fields --- IF you post to it from an HTML form (action POST). See it here:
The CGI Script writes out the passed data to a variable, then defaults it into the input lines being built, using this code:
$first=$query->param('first');
$last=$query->param('last');
print<<EOF;
<BR>First name (hopefully defaulted from prior html page): <input type="text" name="First" value="$first">
<BR>Last name (hopefully defaulted from prior html page): <input type="text" name="Last" value="$last">
Now all I have to do is figure out how to post the data/name pairs from VFP to the cgi script
Any help gratefully appreciated, thanks
John Donohue
In otherwords, I want pre-populate a form on a webpage from VFP. That webpage is built on the fly by a cgi script.
I am on VFP 7.0
I have but I can't seem to figure out how to implement this idea with it.
I have the cgi script all set up and working --- including populating fields --- IF you post to it from an HTML form (action POST). See it here:
The CGI Script writes out the passed data to a variable, then defaults it into the input lines being built, using this code:
$first=$query->param('first');
$last=$query->param('last');
print<<EOF;
<BR>First name (hopefully defaulted from prior html page): <input type="text" name="First" value="$first">
<BR>Last name (hopefully defaulted from prior html page): <input type="text" name="Last" value="$last">
Now all I have to do is figure out how to post the data/name pairs from VFP to the cgi script
Any help gratefully appreciated, thanks
John Donohue