On Tuesday 17 June 2003 14:48, [EMAIL PROTECTED] wrote:

> Maybe you can make it a little bit clear for me?

I can't because I don't know what you're trying to do. I can only point out 
what I see [to me] are obvious mistakes.

> >You have not defined $i, so what did you expect to see here?
> >
> >> session_start();
> >> $aantalpers=$_SESSION["aantalpers"];
> >> $test1 = $_SESSION['test1'][$i];
>
> So is it going to be:  $test1[$i ]= $_SESSION['test1'][$i]; ???

A general rule: it is pointless (in most cases) to assign values from the 
superglobals (such as $_SESSION) to other variables. Just work with them 
directly. Trivial example:

Instead of:

  $firstname = $_SESSION['firstname'];
  $lastname  = $_SESSION['lastname'];
  echo "Hello $firstname $lastname";

Just do:

  echo "Hello {$_SESSION['firstname']} {$_SESSION['lastname']}";

-- 
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
------------------------------------------
/*
The only difference between a rut and a grave is their dimensions.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to