[ back to toc ]

CGI Success Page

Date: 2002/05/20 10:41


I am adding a CGI-Email script to my page and can't figure out how to
redirect the page after the submit button has been pushed. I have the CGI
script working but can't redirect it. I guess what I need is a bit of help
with the HTML code so that the page will reload into a page that I
designed. Thanks a lot for your help!

You can do that with some HTML <META ...> code, but you rather send a
redirect header in the HTTP header field.

To do that you have to code:

print "Status: 301\nLocation: http://my.new.url.to.redirect\n\n";

that prints before anything else.


[ back to toc ]