Hi group,
I just have the following situation.
After checking some data within a "process page", I want to redirect to the ongoing php-page.
the variables I checked are stored in an Object.
The redirect uses the code (reduced to example):
// Page 1
class A {
...
function helloWorld () {
...
}
}
$testObj = &new A();
$aktObject = serialize($testObj);
header("Location: nextpage.php?myObject=".$aktObject);exit;
If I pass this scenario to the next page and there unserialize the object the way:
// Page 2
class A {
...
}
$newObj = unserialize($_REQUEST["myObject"]);
$newObj->helloWorld();
... than the compiler stops with: "Fatal error: Call to a member function on a non-object ..."
Isn't this possible. Does anyone of you have any ideas?
TIA
John