HTML Meta refresh question

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
Here is the setup: I have a site with links to cgi perl scripts that execute and return HTML code. I added a meta refresh back to the page. As things have grown, my pages have grown, I would now like the scripts to meta refresh back to the referring page. Here is the example output of the perl script




I want a single set of buttons that I have in one spot that will refer back to the referring page, so that I can have seperate pages for different tests, while having the master set of utilities.

Any idea how to do this?
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
I really don't understand the question, but just wanted to note that your meta tags need to be inside of <head>.
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
well, they work outside of head, but I might have sloppy html (And I probably do)

I just wanted to post the solution to this, in case someone actually searches first (I did)

Since I am calling a perl script anyway, I just added this line:

my $referrer = $ENV{'HTTP_REFERER'};
in my script, and reformatted my meta as

print "<meta HTTP-EQUIV=\"REFRESH\" content=\"5; url=$referrer\">\n";

and that is working fine.