Re: Have I learned nothing .> Foreach()

From: Date: Tue, 30 Nov 2004 12:13:47 +0000
Subject: Re: Have I learned nothing .> Foreach()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203131@lists.php.net to get a copy of this message
Stuart Felenstein wrote:
--- Marek Kilimajer <lists@kilimajer.net> 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

« previous php.general (#203131) next »