Re: Array in a $_session
| From: | Jason Wong | Date: | Tue, 17 Jun 2003 06:29:01 +0000 |
| Subject: | Re: Array in a $_session | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151786@lists.php.net to get a copy of this message | ||
On Tuesday 17 June 2003 13:23, Frank Keessen wrote:
> (step 3.php)
> <?
> session_start();
> $aantalpers=$_SESSION["aantalpers"];
> $test1 = $_SESSION['test1'][$i];
You have not defined $i, so what did you expect to see here?
> echo $test1;
> for ($i=1; $i<=$_SESSION['test1'][$i]; $i++)
> {
> echo $test1;
$test1 hasn't changed since you assigned it above, so what did you expect to
see here?
> }
> ?>
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Research is what I'm doing when I don't know what I'm doing.
-- Wernher von Braun
*/