CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Redirect After Edit

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.