[PHP] RE: [SOLVED][PHP] Have I learned nothing .> Foreach()

2004-11-30 Thread Stuart Felenstein
--- Graham Cossey <[EMAIL PROTECTED]> wrote: How embarassing. I had a typo elements were School variables were school Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Have I learned nothing .> Foreach()

2004-11-30 Thread Stuart Felenstein
--- Graham Cossey <[EMAIL PROTECTED]> wrote: > You have got session_start(); at the top of each > script haven't you? Absolutely, And the other variables are all working. > Is the SID being passed down the chain of scripts? > Is this done by cookie or url? > cookie -or session. Stuart --

RE: [PHP] Have I learned nothing .> Foreach()

2004-11-30 Thread Graham Cossey
[snip] > > > Then finally on the transaction page, some pages > > down > > > the road: > > > > > > > and also print_r($_SESSION['schools']); here > > > > > foreach($_SESSION['schools'] as $school) > > > { > > > What have you find out? > > > They don't exist. [snip] You have got session_sta

Re: [PHP] Have I learned nothing .> Foreach()

2004-11-30 Thread John Holmes
Stuart Felenstein wrote: --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: print_r($_SESSION['schools']); here Then finally on the transaction page, some pages down the road: and also print_r($_SESSION['schools']); here foreach($_SESSION['schools'] as $school) What have you find out? They don't exis

Re: [PHP] Have I learned nothing .> Foreach()

2004-11-30 Thread Richard Davey
Hello Stuart, Tuesday, November 30, 2004, 11:49:32 AM, you wrote: SF> I can't for the life of me find the issue here. SF> Any pointers / help would be greatly appreciated. Nothing wrong with the technique really, you can place an array into a session variable quite happily. Suggest you check th

Re: [PHP] Have I learned nothing .> Foreach()

2004-11-30 Thread Stuart Felenstein
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > print_r($_SESSION['schools']); here > > > > > Then finally on the transaction page, some pages > down > > the road: > > > > and also print_r($_SESSION['schools']); here > > > foreach($_SESSION['schools'] as $school) > > { > What have you f

Re: [PHP] Have I learned nothing .> Foreach()

2004-11-30 Thread Marek Kilimajer
Stuart Felenstein wrote: I thought this one was under my control. Apparently not. I'm getting a "Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/mypage.php on line 143 First, I have 3 form elements school[] school[] school[] Here is how I initialize the session va

[PHP] Have I learned nothing .> Foreach()

2004-11-30 Thread Stuart Felenstein
I thought this one was under my control. Apparently not. I'm getting a "Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/mypage.php on line 143 First, I have 3 form elements school[] school[] school[] Here is how I initialize the session variable (after user it's