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
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
--- 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
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 the
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
[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_start(); at the top of each
--- 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
--
PHP
--- 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
8 matches
Mail list logo