Re: Making variables with an iteration?

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

 



On Mon, 06 Dec 2004 10:13:05 -0500, Robert Sossomon <lonewolf@xxxxxxxxx> wrote:
[...]
> <?php
> for ($j=1, $j<5, $j++)
> {
>   $choices.$j= $_POST['choice'.$i];
>   echo $choices.$j;
> }
> ?>
[...]


You have a typo in your code. You are typing $i instead of $j. You
should write instead:
$choices.$j= $_POST['choice'.$j];

Regards,
Samer

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