0

Hey, header is working just fine in f.f but not in i.e. I.E. seems to clear the Query String up to index and redirect me to the index page. If I cancel out the header func. page seems to work . Here is some of the code.

if ($Result1) {
 $insertGoTo = "your-account.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
}
}
header(sprintf("Location: %s", $insertGoTo));

Thanks.

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by phpDave
0

Got it! Although not sure why it worked in F.F.

if ($Result1) {
 $insertGoTo = "your-account.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
	header(sprintf("Location: %s", $insertGoTo));
  }
}
}
0
header(sprintf("Location: %s", $insertGoTo));

Should it not be?

header(sprintf("Location: %s". $insertGoTo));

, = .

?????

0

Hey, Sorry for any confusion. What I did was put the code inside of block statement.
}
I still want to look in to that a little more but it is working.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.