Still struggling with Perl so please forgive this 'basic' question.
I have a couple of other scripts that work fine using
print "Location: url---
to display a page in the clients browser. This new script I'm using just prints the url to the browser window. I understand this is because the content-type is text/html (according to a search and answer by Feyd.
I can print a content refresh to url in html from the script that works ok but it is slow. What do I need to do to ensure that I can use print "Location:.
I have tried a few things but they all just print to the browser.
Thanks.
__________________
An answer needs a question just as much as a question needs an answer. Deep eh!
Early on in the script among a tribe of comments there is the statement
print "Content-type is set to text/html \n\n";
to make sure that the contents of a text file, should it be requested, were printed to the screen. What a bummer, I've spent ages and ages trying to get it to work, I suppose that is the price you pay when you use other peoples (with permission) scripts.
__________________
An answer needs a question just as much as a question needs an answer. Deep eh!
Your friend was absolutly right.
You can't have at the top:
print "Content-Type text/html\n";
It just won't work.
So delete that line.
After that it should work.
Mail me at info@warzone-game.co.uk with your url and the script if you need any more help.
I'll have a look at the script for you.