Jump to content
  • Advertisement

Archived

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

MetroidHunter

help redirecting with perl

This topic is 5364 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
Advertisement
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
Try
<meta http-equiv="Refresh" content="10;URL=/cgi-bin/whatever">
With the quotes around Refresh.

[edited by - sbennett on November 11, 2003 2:04:26 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!