CGI Header Problem
Posted on 2003-03-31
I have a redirect on one of my scripts which is supposed to take the browser to another page once the script is complete.
$successurl = 'http://www.domain.com/';
print "Location: $successurl\n\n";
The problem I'm having is that it's simply printing that on screen not redirecting. I understand that somewhere in the script it sends the header as print "Content-type: text/html\n\n"; but how do I cancel that when it gets to this section. I don't want it to print to screen but instead redirect to page. Is there a different header I could put on top of the above two lines?
Thanks for your help. This has been driving me nuts for two days.