Results 1 to 2 of 2
Related
-
adsense javascript in php "print" Forum: Google Adsense
Replies: 4 -
A:visited img not working in FIrefox or Netscape Forum: CSS Forum
Replies: 1 -
background-image "url" not working Forum: CSS Forum
Replies: 1 -
MSIE/Firefox white space "gap" Forum: CSS Forum
Replies: 1 -
MSIE/Firefox white space "gap" Forum: HTML Forum
Replies: 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.
any suggestions?
-
11-03-2007, 11:01 AM #2
Re: print "Location... in firefox not working
Hey,
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
Code: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
Code: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.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum