Re: passing objects in url

From: Date: Tue, 09 Jul 2002 17:21:18 +0000
Subject: Re: passing objects in url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-106402@lists.php.net to get a copy of this message
Hello, this will not work, but what you can do is this: $ser = serialize($this); echo "<a href="foo.php?this=$ser">Bar</a>\n"; and then do this in foo.php: $object = deserialize($_GET['this']); Another way could be to use sessions, which will be a lot easier to work with in this case. (http://www.php.net/session_start) Derick Alexander Ross wrote:
If $this is an object, can I have the following link? <a href="process_this.php?this=$this">Process</a> Will the URL become too long? Will teh info get passed correctly? thanks Alexander Ross


« previous php.general (#106402) next »