Page 1 of 1

How do I pass an object from PHP Page to PHP Page?

Posted: Sun Nov 21, 2010 11:28 pm
by Jeff Lynn
Hi,

Can someone help me by showing me how to pass an object, such as a class, from a PHP web page to another PHP web page?

I had used $_POST $_GET and $_SESSION[xyz] for string values, but for an object?

Any idea?

Jeff

Re: How do I pass an object from PHP Page to PHP Page?

Posted: Sun Nov 21, 2010 11:37 pm
by s992
You could try to serialize it.

Re: How do I pass an object from PHP Page to PHP Page?

Posted: Sun Nov 21, 2010 11:53 pm
by Jeff Lynn
I just used $_SESSION[xyz] to store and retrieve it and it works.

Just wonder if there is any other way other than serializing it?

Jeff