Re: Passing variables between pages
| From: | Thodoris | Date: | Fri, 19 Sep 2008 16:02:08 +0000 |
| Subject: | Re: Passing variables between pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280516@lists.php.net to get a copy of this message | ||
Jason Pruim wrote:
Hi everyone, Stupid question of the week... A array variable is not being passed between 2 pages. Are my options: #1. Use sessions? #2. Use cookies? #3. Use a hidden form to pass the variable's around? Here's some context... I am working on a timecard system where they are presented the main page, where they login they are brought to a screen where they need to clock in/out. It all starts working great, but when they clock in/out it loses the variable that says they are logged in so it tries to re-authenticate them which doesn't work since the username/password are no longer in the $_POST array... I can provide code if needed, but I think it's just a logic problem on my end :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com japruim@raoset.com Well actually these are the *obvious* options but by far not the only. These two for e.g. are extra options you have:http://www.php.net/manual/en/intro.msession.php http://www.php.net/manual/en/intro.memcache.php -- Thodoris