Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: passing objects between different pages


Message #1 by Yi Zheng <Yi.Zheng@s...> on Fri, 15 Jun 2001 12:39:58 -0400
At 12.39 15/06/2001 -0400, you wrote:
>Is there a sleak way of passing objects between different pages? Hidden form
>doesn't work, because it only passes string. I had no luck with serialize
>and unserialize either :(

Hi,

    I am not sure, but I can reasonably say that it is possible. I used to 
serialize/unserialize them before passing them as arguments or store them 
as cookies or also in a PHP session. Remember though that you can only pass 
data, whereas methods won't be recognize in the following pages (unless you 
create them with a 'new' statement).

    Maybe our dear members of the list can explain this in a better way. I 
hope this could help you anyway.

-Gabriele


--
Gabriele Bartolini, Web Programmer
angusgb@u... | http://space.tin.it/io/gabrbart
"What kind of place is this? It's beautiful: Pigeons fly, women fall from 
the sky! I'm moving here!"


  Return to Index