Results 1 to 2 of 2
A:visited img not working in FIrefox or Netscape Forum: CSS ForumReplies: 1
background-image "url" not working Forum: CSS ForumReplies: 1
MSIE/Firefox white space "gap" Forum: CSS ForumReplies: 1
MSIE/Firefox white space "gap" Forum: HTML ForumReplies: 1
11-01-2007, 04:00 PM #1
print "Location... in firefox not working
With the newest updata to firefox, some of my CGI scripts to redirect users to another html page is no longer working. At the end of the script, i have the following:
print "Location: http://myURL\n\n";
It worked in firefox until recently, and it still works in IE.
11-03-2007, 11:01 AM #2
Re: print "Location... in firefox not working
I have never used that method of page re-directing, so not sure why it doesn't work in Firefox...
Here are a couple of alternative methods...
1) Use HTML::Template module
use HTML::Template; my ($template); $template = HTML::Template->new(filename => "myURL.htm"); print "Content-Type: text/html\n\n", $template->output;
i.e. using html meta refresh
print "Content-type: text/html\n\n"; print <<"HTML code"; <HTML><HEAD> <TITLE>Page Re-Direct</TITLE> <meta http-equiv="Refresh" content="1; url=myURL.htm"> </HEAD><BODY> <p>Text here etc. </BODY></HTML> HTML code
Last edited by xmassey; 11-03-2007 at 11:11 AM.