Archived

This topic is now archived and is closed to further replies.

help redirecting with perl

This topic is 5150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m having problems with redirection in perl. What I want to do, is display a webpage for a few seconds, then have it go to the next page. I''ve been using the ''print "Location: url.pl\n\n"'' command to redirect, but i can''t get it to show the page first. any ideas?

Share this post


Link to post
Share on other sites
Perhaps the use a meta tag in the first page you want to display as follows:

<meta HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.yoursite.com/">

This will cause the browser to redirect in 10 seconds to www.yoursite.com

Halo7

Share this post


Link to post
Share on other sites
It''s giving me a server error when I try that...
what i''m doing on the page is modifyinh a variable and passing it through the query string, and the meta tag doesn''t appear to be working in my script.

print("<meta HTTP-EQUIV=Refresh CONTENT=\"10; URL=/cgi-bin/wcount2?num=" + $e + "\n\n\">");

Share this post


Link to post
Share on other sites