Código PHP:
Ver original<?php
if ($_POST['enviar']){
echo "<table border>";
for($i=0;$i<$_POST[filas];$i++){
echo "<tr>"; // el tr no lo cerramos hasta haber anidado los td
// dentro de la etiqueta tr no debe de haber nada que no sea un td
//<input type='text' name='filas'>
//} el for tampoco lo cerramos
for($j=0;$j<$_POST[columnas];$j++){
echo "<td>".$i." - ".$j."<input type='text' name='columnas'></td>";
}
//Cerramos aquí el primer for y el tr
echo "</tr>";
}
echo "</table>";
}//cierra boton enviar
?>