re another hand wringer
| From: | jekillen | Date: | Sun, 18 Feb 2007 22:01:20 +0000 |
| Subject: | re another hand wringer | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-249000@lists.php.net to get a copy of this message | ||
Sorry all;
regarding recent post list troubles with code below
in the loop I was using count($value) instead of just $value
for($i = 0; $i < count($flen); $i++) // should be $flen instead of count($flen)
{
array_push($edata, $_POST["a_$z"]); // this loop terminates on the first iteration.
print $_POST["a_$z"].'<br>'; // only prints the first in the series.
$z++;
};
for($i = 0; $i < $flen; $i++) // now it works
{
array_push($edata, $_POST["a_$z"]);
print $_POST["a_$z"].'<br>'; // prints all values.
$z++;
};
Thanks for your time;
Jeff K