Re: Passing Objects

From: Date: Fri, 11 May 2001 01:36:29 +0000
Subject: Re: Passing Objects
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-9239@lists.php.net to get a copy of this message
Nope. something like this may get you where you want to go though include("myObjectClassDeclaration"); $myInstance=new myObject; echo "http://blahblah.com/?passedClass=".urlencode(serialize($myInstance)); Then in subsequent pages this should work: include("myObjectClassDeclaration"); $myInstance=unserialize($passedClass); <tcuhost@hotmail.com> wrote in message news:OE8VhEUsebmspH2q6Dq00001366@hotmail.com... > does this make sense? > > assuming: > > class myObject > { > $var1 = "A"; > $var2 = "B"; > } > > http://blahblah.com/?passedClass=myObject > > would passedClass also send with it being an oject both variables and the > rest of the class defined? > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#9239) next »