Re: [PHP] Array in a $_session

2003-06-17 Thread Jason Wong
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

Re: [PHP] Array in a $_session

2003-06-17 Thread fkeessen
Hi Jason, 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]; ??? Regards, Frank

Re: [PHP] Array in a $_session

2003-06-17 Thread Jason Wong
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?

RE: [PHP] Array in a $_session

2003-06-17 Thread Ford, Mike [LSS]
-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 =

RE: [PHP] Array in a $_session

2003-06-17 Thread fkeessen
Dear all, Finnaly managed it (it's working! :)... But can you check if this is the way? (step1.php) ? $_REQUEST[submit]=isset($_REQUEST[submit])?$_REQUEST[submit]:; if($_REQUEST['submit']!=) { session_start(); $_SESSION['test1'] = array(); $_SESSION['test1'] = $_POST['test1'];

[PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
Hi, Still strugling with array's ; : Can you help me with this?? input type=\text\ name=\test1[$i]\ size=\6\ How can i put that value into an $_SESSION?? Something like $_SESSION[test1][$i]?? This is the way i put into a database foreach($_POST['test1'] as $i = $Value) { $query = INSERT

Re: [PHP] Array in a $_session

2003-06-16 Thread John W. Holmes
Frank Keessen wrote: Still strugling with array's ; : Can you help me with this?? input type=\text\ name=\test1[$i]\ size=\6\ How can i put that value into an $_SESSION?? Something like $_SESSION[test1][$i]?? This is the way i put into a database foreach($_POST['test1'] as $i = $Value) {

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
: Monday, June 16, 2003 11:34 PM Subject: Re: [PHP] Array in a $_session Frank Keessen wrote: Still strugling with array's ; : Can you help me with this?? input type=\text\ name=\test1[$i]\ size=\6\ How can i put that value into an $_SESSION?? Something like $_SESSION[test1][$i

Re: [PHP] Array in a $_session

2003-06-16 Thread Jason Wong
On Tuesday 17 June 2003 05:43, Frank Keessen wrote: Thanks but nothing is displayed on page 3 Any thoughts??? (page 2) $_REQUEST[submit]=isset($_REQUEST[submit])?$_REQUEST[submit]:; if($_REQUEST['submit']!=) { foreach($_POST['test1'] as $i = $Value) { $_SESSION['test1'][$i] =

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
PROTECTED] Sent: Monday, June 16, 2003 11:58 PM Subject: Re: [PHP] Array in a $_session On Tuesday 17 June 2003 05:43, Frank Keessen wrote: Thanks but nothing is displayed on page 3 Any thoughts??? (page 2) $_REQUEST[submit]=isset($_REQUEST[submit])?$_REQUEST[submit]:; if($_REQUEST

Re: [PHP] Array in a $_session

2003-06-16 Thread John W. Holmes
Frank Keessen wrote: Hi jason the rest, Dit the session_write_close()! Nothing still displayed in step3, more thoughts?? $_REQUEST[submit]=isset($_REQUEST[submit])?$_REQUEST[submit]:; if($_REQUEST['submit']!=) { foreach($_POST['test1'] as $i = $Value) { $_SESSION['test1'][$i] =

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
Keessen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:06 AM Subject: Re: [PHP] Array in a $_session Frank Keessen wrote: Hi jason the rest, Dit the session_write_close()! Nothing still displayed in step3, more thoughts?? $_REQUEST[submit]=isset($_REQUEST[submit