Re: session variables across several pages
| From: | Terry Romine | Date: | Wed, 15 May 2002 16:10:47 +0000 |
| Subject: | Re: session variables across several pages | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19199@lists.php.net to get a copy of this message | ||
huh.. seems to work, now.
I do the following:
session_start();
session_register("form_data");
if($doAction) {
switch($doAction) {
case "Save Information":
// save data in cookies
$HTTP_SESSION_VARS['form_data'] = array($name,$employer,$e_address);
...
and on the thanks page:
session_start();
session_register("form_data");
list($name,$employer,$e_address) = $form_data;
and it displays the correct data now.
Soooo the trick seems to be to not use the same var names.
Ok. I got it.
Thanks!!
On Wednesday, May 15, 2002, at 11:01 AM, matt stewart wrote:
don't think you can have an array as a session variable, you'd have to set it as character delimited string or something. Terry RomineWeb Developer JumpInteractive.com