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) > Reiziger Voorletters "; ?> (STEP4.PHP) '; ?> Regards, Frank >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: 17 June

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"]; > >

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-16 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, F

Re: [PHP] Array in a $_session

2003-06-16 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++) > { > e

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Frank 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

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] = $_POS

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
($i=1; $i<=$_SESSION['test1'][$i]; $i++) { echo $test1; } Frank ----- Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 11:58 PM Subject: Re: [PHP] Array in a $_session > On Tuesday 17 June 2003

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['te

Re: [PHP] Array in a $_session

2003-06-16 Thread Frank Keessen
e! Frank - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Frank Keessen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 11:34 PM Subject: Re: [PHP] Array in a $_session > Frank Keessen wrote: > &

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?? 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 INTO test (test1, test2, t