prueba el segundo codigo, se supone que tu le debes escribir cuantas cajas ocupas, verdad???
te pongo de nuevo el codigo:
Código:
<html>
<head>
</head>
<body>
<form id="form2" name="form2" method="POST" ACTION="<?php echo $_SERVER['PHP_SELF']?>">
Cuantas cajas de texto ocupas <input name="cuantos" type="text"/>
<input type="submit" value="Enviar" />
<?php
if( strtoupper( $_SERVER['REQUEST_METHOD'] ) == "POST"){
$i=1;
while ($i<=$cuantos){
echo "<br />";
echo "Caja $i ";
echo "<input name=\"caja[$i]\" type=\"text\">";
$i=$i+1;
}
}
?>
</form>
</body>
</html>
Debe de funcionarte, sino posteas tus dudas.
saludos!!!