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:[EMAIL PROTECTED]] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php