Redirecting website when using CGI

Daeymion

Member
Jan 14, 2001
122
0
0
Upon submitting a form using CGI, I want the ability to open a URL that is not associated with the page that is receiving the form. For example:

action="open.this.URL.to.post.data.to.html"

causes the page displayed to be:

thanks.so.very.much.html

but I don't want to make any changes to the cgi script itself (i don't have the access to make the changes)

any suggestions?
 

teknodude

Member
Apr 11, 2002
186
0
0
You could achieve it in this manner:

When the form submit button is clicked you could use JavaScript to open a pop-behind window that opens with the CGI page to receive the results, while at the same sending the user to the thank you page in their main browser window.

The pop-behind window spawned by the JS should be set to automatically close as soon as the CGI script has loaded and parsed all the form data.

I can help you code this if you need it :) Hope that helps.

teknodude