How to create a array with Form Fields?
| From: | Santhyago Bueno Gallao | Date: | Wed, 06 Sep 2000 17:41:12 +0000 |
| Subject: | How to create a array with Form Fields? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15562@lists.php.net to get a copy of this message | ||
Can i do this? Is this code correct?
for ($i = 0; $i < 10; $i ++)
{
printf('<input type="text" name="campo[%d]">',$i);
}
//--------------------------------------------------
And get the values:
for ($j = 0; $j < 10; $j ++)
{
$soma = $soma+$campo[$j];
}
Please, help me.
Tks.