Re: Sessions?

From: Date: Sat, 14 Apr 2001 09:50:35 +0000
Subject: Re: Sessions?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-48525@lists.php.net to get a copy of this message
Plutarck wrote: > The way I do it is to stick all those global variables into an include file, > which I usually named something like global.php. Um no. These aren't static variables. They change from page to page. For example, page one $foo=0, $bar=3, $baz='Closed' They follow a particular link that changes them to, $foo=1, $bar=3, $baz='Open' They follow yet another link, and this time only $bar changes, $foo=1, $bar=2, $baz='Open' Right now, the way I've always done that was to include it in the URL: next_page.php?foo=0$bar=3&baz='Closed' - they follow a link, and those variables get tacked again. If it's a form, I pass hidden input tags. But, there's got to be a better, transparent way of doing this. No? AMK4 -- H | Hi, I'm currently out of my mind. Please leave a message. BEEEEP! |____________________________________________________________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 Director of Internet Operations / SysAdmin . 800.441.3873 x130 Photo Craft Laboratories, Inc. . eFax 248.671.0909 http://www.pcraft.com . 3550 Arapahoe Ave, #6 .................. . . . . Boulder, CO 80303, U.S.A.

« previous php.general (#48525) next »