Re: [PHP] Lost session variables still confounding me

2004-11-04 Thread Daniel Kullik
Stuart Felenstein wrote: --- Jason Wong <[EMAIL PROTECTED]> wrote: Maybe what you had before was: if (count($myarray) > 5) $_SESSION['arrayerr'] = "you have selected too many industries"; session_write_close(); header ("Location: Page2.php?".SID); exit; And yes that has

RE: [PHP] Lost session variables still confounding me

2004-11-04 Thread Reinhart Viane
: Richard Davey; [EMAIL PROTECTED] Subject: Re: [PHP] Lost session variables still confounding me --- Richard Davey <[EMAIL PROTECTED]> wrote: > Unless I'm mistaken - you are redirecting back to > Page 2 upon an > error, right? Well according to the code posted, the > second you

RE: [PHP] Lost session variables still confounding me

2004-11-04 Thread Reinhart Viane
e- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: donderdag 4 november 2004 11:03 To: Richard Davey; [EMAIL PROTECTED] Subject: Re: [PHP] Lost session variables still confounding me --- Richard Davey <[EMAIL PROTECTED]> wrote: > Unless I'm mistaken - you are redirecting bac

Re: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Richard Davey <[EMAIL PROTECTED]> wrote: > Unless I'm mistaken - you are redirecting back to > Page 2 upon an > error, right? Well according to the code posted, the > second you hit > Page 2 again, you are over-writing whatever is in > the f1a session > variable with the contents of the $_POS

RE: [PHP] Lost session variables still confounding me

2004-11-04 Thread Reinhart Viane
>>Page 1: >>//Start the Session - begin Block >>@session_start(); >> >>>/> Is it necesarry to start the session here? Maybe it is if they have to be logged in or something Normally I only start the session when I indeed can assign some session variables in the same page >>Page 2: >>//Start the Se

Re: [PHP] Lost session variables still confounding me

2004-11-04 Thread Richard Davey
Hello Stuart, Thursday, November 4, 2004, 9:38:44 AM, you wrote: SF> Page 2: SF> $_SESSION['f1a'] = $_POST['ListingName']; SF> Page 3: SF> if (count($myarray) > 5) { SF> $_SESSION['arrayerr'] = "you have selected too many SF> industries"; SF> header ("Location: Page2.php"); SF> exit; SF> } SF>