Re: passing variables with HTTP_GET_VARS
| From: | Burhan Khalid | Date: | Sun, 03 Apr 2005 06:34:05 +0000 |
| Subject: | Re: passing variables with HTTP_GET_VARS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212097@lists.php.net to get a copy of this message | ||
AndreaD wrote:
[ snip ]
just say I have a page index.php and that is doing a calucualtion and creating a couple of variables called $age and $height. How so I make these variables globally available and how do all the other pages show/retrieve them??Andrea: What you are looking for are session variables. These variables are persistant, and are available via the $_SESSION "superglobal" array. Start at http://www.php.net/session for examples.