You are here: Re: [PHP] array varible problems « PHP « IT news, forums, messages
Re: [PHP] array varible problems

Posted by Dan Lowe on 08/14/05 07:43

On Aug 13, 2005, at 8:35 AM, edwardspl@ita.org.mo wrote:

> <table>
> <tr>
> for($i=1;$i<5;$i++)

This means:

* Start with $i = 1
* End loop if $i is less than 5
* Increment $i each time around

So your loop is ending at the first check because $i is less than 5.
You want $i > 4 instead, I think.

-dan


> {
> <td><input type=checkbox name='f<? echo $i;?>[]' value='1'></td>
> }
> </tr>
> </table>
>
> Only display the result of zero array, eg :
> f1[0]
> f2[0]
> f3[0]
> f4[0]
>
> So, how to write the source (Web page - when user click the submit
> button) by using loop ?


--
Hey, did you hear? They took "gullible" out of the dictionary!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация