CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 PHP: how to change Redirect-Page on AfterInsert Event?

Print topic Send  topic

Author Message
lukas rueegg
Posted: 07/18/2002, 7:44 AM

is it possible to change the $Redirect-Variable in the AfterInsert (or
AfterUpdate) Event?

as it seems, the variable always gets overwritten in the Operation()-Method
afterwards...

thanks
lukas.

Simon Chee
Posted: 07/18/2002, 7:55 AM

I've used

Header ("Location: x.php");
exit;

"lukas rueegg" <lru_ccs@pixworx.ch> wrote in message
news:ah6k7q$jd3$1@news.codecharge.com...
> is it possible to change the $Redirect-Variable in the AfterInsert (or
> AfterUpdate) Event?
>
> as it seems, the variable always gets overwritten in the
Operation()-Method
> afterwards...
>
> thanks
> lukas.
>
>

lukas rueegg
Posted: 07/18/2002, 8:32 AM

right, that's working. the problem is, that other code isn't executed
because the redirect is executed instantly...

i think there should be a way to change the redirection string only so that
the script is executed as usual...

one solution i found is to alter the function CCGetQueryString in common.php
and replace all $HTTP_POST_VARS with $_POST and all $HTTP_GET_VARS with
$_GET and then add the requested parameter to the $_GET variable in the
AfterInsert-Event. it gets then attached to the redirect query correctly.
but it's some kind of hand-coded workaround... and it's only working in php
> 4.1.0

lukas.


"Simon Chee" <darkblade@darkblade.fslife.co.uk> wrote in message
news:ah6ktg$krl$1@news.codecharge.com...
> I've used
>
> Header ("Location: x.php");
> exit;



   


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.