Re: Have I learned nothing .> Foreach()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stuart Felenstein wrote:
--- Marek Kilimajer <lists@xxxxxxxxxxxxx> 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 exist.

Then print_r($_POST) or print_r($_POST['schools']) and see what they contain. Are you sure you're using POST and not GET? Are you actually selecting any "schools" when you submit the form? If you aren't, then $_POST['schools'] won't exist.


--

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux