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.

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));
  }
}
}
header(sprintf("Location: %s", $insertGoTo));

Should it not be?

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

, = .

?????

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.