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;
|
|
|
 |
|