Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Execute HTML

Execute HTML

Execute HTML

Hello Out There,

I've got a website that calls a CGI when, a button is clicked, from another website. the second website is not mine and I have no way of downloading the script. The problem I have is I need the user to go to a different website after the CGI process is complete. I added the line:

<input type="hidden" name="return" value="http://www.simplemoneyshop.com/nextstep.html">

But all this will do is create a variable.

How will I get this to run after the first CGI process that I have no access to?


RE: Execute HTML


No need to start a new thread, just reply to your previous thread :). I assume you are still referring to PayPal.

The value of the hidden variable is sent to the PayPal CGI. Once payment is processed the PayPal CGI will send the user back to the value of this hidden variable (your payment complete URL), or atleast provide a link for the user to click.

This may be more helpful, quoting from http://www.tipsntutorials.com/tips/PHP/80, as an alternative method.


- Login to Paypal
- Click on the Profile tab
- Under "Selling Preferences", click on Website Payment Preferences
- Next to "Auto Return", select On
- For "Return URL", enter the web address of the page you want to send the user to after their payment is successful
- If you want to receive notification when a paypal payment goes through, set Payment Data Transfer to On.
- Click Save (at the bottom of the page)

This is obviously an important part of an ecommerce system, therefore should be well documented within PayPal's documentation.


RE: Execute HTML

I am not sure about the PayPal part but if you want to return & go to another web site, place the following META type command in your return page. Your return HTML code can include a

    <META HTTP-EQUIV="REFRESH" CONTENT="0; URL=where-ever-you-want-to-go.com/www/a-specific-web-page.HTM">

this meta command placed in your <head>   </head> section of the returned page from your cgi program will be processed by the browser and cause a refresh to any page on the web after "0" seconds.

Hope this helps.                                


Computer thought: I teach a lot of programming so I can learn. You can never learn it all.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close