Passing arrays as session variables
From: rachel (pepchick_at_gmail.com)
Date: 10/22/04
- Next message: hubert: "parsing tiff image"
- Previous message: hubert: "send 1 dim array as hidden type via form"
- Next in thread: bill skipton: "Re: Passing arrays as session variables"
- Reply: bill skipton: "Re: Passing arrays as session variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Oct 2004 03:47:17 -0700
Hi, I'm trying to use an array as a session variable.
First, I register the array:
if(session_is_registered("docnum")) {
session_register("docnum");
$_SESSION['docnum'] = array();
}
Then, I set up the variables in a while-loop:
$SESSION["docnum"][$count] = $docn;
(I've also tried $SESSION["docnum[$count]"], but that didn't work either)
I pass the variable $count to another page, where I try to retrieve the docnum:
$docn = $_SESSION["docnum"][$count];
(again, I've also tried $SESSION["docnum[$count]"], but that doesn't work)
so... how can I do this? help!
- Next message: hubert: "parsing tiff image"
- Previous message: hubert: "send 1 dim array as hidden type via form"
- Next in thread: bill skipton: "Re: Passing arrays as session variables"
- Reply: bill skipton: "Re: Passing arrays as session variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|