Re: array varible problems
| From: | Dan Lowe | Date: | Sun, 14 Aug 2005 04:43:53 +0000 |
| Subject: | Re: array varible problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220582@lists.php.net to get a copy of this message | ||
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!