RE: [PHP] Help for passing variable to all pages

From: Date: Wed, 20 Feb 2002 23:09:59 +0000
Subject: RE: [PHP] Help for passing variable to all pages
Groups: php.general 
Request: Send a blank email to php-general+get-85634@lists.php.net to get a copy of this message
Well I tried setting the variable to a constant value and it still didn't work. What I eventually want to pass is an ID retrieved from the DB that will be needed by every page Janet -----Original Message----- From: Simon Willison [mailto:cs1spw@bath.ac.uk] Sent: Thursday, 21 February 2002 2:37 To: Rick Emery Cc: 'WG4- Cook, Janet'; PHP List Subject: Re: [PHP] Help for passing variable to all pages > > ><a href="welcome.php3?dbcnxid=<?php echo("$dbcnx"); ?>test >link</a> > You can't pass resource types like database connection IDs in URLs as they are only relevant for the instance of the script in which they are created. The same goes for things like file identifiers (from fopen) and other stuff like that. Simon

« previous php.general (#85634) next »