> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2003 07:48
> 
> Maybe you can make it a little bit clear for me?
> 
> >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]; ???

No.  This is worse than before.  You still have not defined what $i is -- it has no 
value, it is unset, it is equivalent to NULL.  Therefore, $_SESSION['test1'][$i] is 
unlikely to return anything meaningful.  At least before you were putting unknown 
result into a known location ($test1) -- but now you're trying to assign it to another 
non-meaningful place ($test1[$i], which is an unknown quantity because $i is still 
undefined!).

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

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

Reply via email to