Re: Passing variables

From: Date: Wed, 23 May 2001 14:35:07 +0000
Subject: Re: Passing variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54070@lists.php.net to get a copy of this message
You can "pass" variables through the session mechanism. http://www.php.net/manual/en/ref.session.php This will require some additional work to get your sessions working properly, but you probably want to do that anyway at some point. I have found the session mechanism to be extremely useful so far, though to this point it's only been in a development (not production) environment. Pete. PS: If you want to get really ugly, you can have all your links actually be javascript functions that submit a form full of hidden elements via POST. Uglier and more bug-prone than including them in the link URL, but you don't run into URL length limits and you don't get people quite as easily changing the values to see what happens. > Is there any other way of passing variables other than submitting them > through a form and passing them using a URL? E.G. Currently I am passing > them though a url which is not the safest means in anyway.

« previous php.general (#54070) next »