Código PHP:
$numero_campos = 2;
echo '
<form action="" method="post">';
for($i=1;$i<=$numero_campos; $i++)
{
echo '<input name="campo'. $i .'" type="text" />';
}
echo '
</form>';
/*
Resultado
------------
<form action="" method="post">
<input name="campo1" type="text" />
<input name="campo2" type="text" />
</form>
*/
Asi seria para que tome todos los campos que le digas...
Prueba, a ver si te funciona..
salu2