re another hand wringer

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

 



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

--
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