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=sh ow_detail" ;
if (isset($_SERVER['QUERY_STR ING'])) {
$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?
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
if (isset($_SERVER['QUERY_STR
$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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome, it happens to all of us.
ASKER