On Aug 13, 2005, at 8:35 AM, edwardspl@xxxxxxxxxx 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!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php