Re: evaluating dynamic variable

From: Date: Tue, 02 Sep 2003 20:54:27 +0000
Subject: Re: evaluating dynamic variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161484@lists.php.net to get a copy of this message
From: "Stephen Goodman" <sgoodman@immunetolerance.org> > When I run the code you've attached, with $i iterating up to 3, I get > three 'empty!', even if $resolution1 should be 'not empty!'. It seems > like the $i in $_POST["resolutions".$i] is not getting parsed into a > value, and php is looking for a key resolutions$i. > > Whoops, I'm an idiot. Resolution singular, not plural. Thanks for the > help everyone Does that mean you solved it? Remember that PHP is case sensitive, too. $_POST['Resolution'] is not the same as $_POST['resolution']. If you're still having trouble, go back to some basic debugging. Do a print_r($_POST) so you actually know what $_POST contains, to begin with. ---John Holmes...

« previous php.general (#161484) next »