Jump to content

polarus

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

polarus's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I deleted header("HTTP/1.1 301 Moved Permanently;"); and did a echo "<meta http-equiv='Refresh' content='2; URL=$red'>"; and it worked ok, in both IE and Firefox Thank you for your replies.
  2. Hello, I am trying to echo a message before redirecting the visitor to another page. The destination is a variable. This is what i have so far: <?php if (array_key_exists($_GET[id],$links)) { $red = $links[$_GET[id]]; header("HTTP/1.1 301 Moved Permanently;"); header("Refresh:3; url=$red"); echo "You will be redirected to.."; } else { header("Location: http://www.example.com"); } exit(); ?> The problem is that it works in Firefox, but not IE. In IE it will work if there is no message and no delay, like the code below: <?php if (array_key_exists($_GET[id],$links)) { $red = $links[$_GET[id]]; header("HTTP/1.1 301 Moved Permanently;"); header("Location: $red"); } else { header("Location: http://www.example.com"); } exit(); ? Does anybody have any idea, what is wrong with this code? Thank you in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.