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

Need to run a CGI and an HTML within another CGI 1

Status
Not open for further replies.

bgatto64

Programmer
Oct 30, 2009
2
US
I have a web page where a user can buy something. On the 'Buy Now' button a CGI located on PayPal.com is called for payment. After the payment process I need the user to go to an already written HTML page.

I thought, executing the PayPal CGI within my own CGI and then run the HTML page would be the best way.

If it is, how if this CGI written? If it isn't, what would be the best way?

Thanks for the help,

Bob Gatto
 
Hello,

Within your HTML form, do you not have a bunch of hidden fields including the amount, currency code, return etc which is passed to the PalPal CGI and processed there? I don't know much about PayPal, but I have seen scripts which include the following:

Code:
<input type="hidden" name="return" value="[URL unfurl="true"]http://www.domain.com/payment_complete.htm">[/URL]

Chris.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top