feha
Posts: 712
|
Posted: 06/16/2005, 6:04 AM |
|
I had need to preserve and remove some parameters after editing a record and redirect page ...
global $FileName;
$QueryString ="";
if(CCGetQueryString("QueryString", "")) {$QueryString = CCGetQueryString("QueryString", "");}
$QueryString=str_replace("product_id=".CCGetParam("product_id",""),"",$QueryString);
$QueryString=str_replace("ccsForm=ddd_products1%3AEdit","",$QueryString);
header("Location:".$FileName."?".$QueryString);exit;
This is used in an after update event.
If you want to redirect to another page just change variable $FileName
Hope this helps someone 
_________________
Regards
feha
www.vision.to
feedpixel.com |