Link to home
Start Free TrialLog in
Avatar of jws2bay
jws2bay

asked on

Strip off old header information

I am working in php/mysql.  I am calling a page with some additional information in the header.  it looks something like this:

www.mysite.com/mypage.php?Series=CRY140-1

on this page I am doing an insert, and a redirect.

 $theRN = mysql_insert_id();
 $insertGoTo = "store.php?crn=0&rn=$theRN&action=show_detail";

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

The header is showing as
www.mysite.com/store.php?crn=0&rn=77857845&action=show_detail&Series=CRY140-1

It seems to have carried over the  "Series=CRY140-1".

It does it in ie and firefox.

How do I strip this off?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jws2bay
jws2bay

ASKER

sometimes I just don't see the obvious.  Thanks
You're welcome, it happens to all of us.