Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/04/2007, 11:23
bilkarm3
 
Fecha de Ingreso: julio-2005
Ubicación: Guatemala
Mensajes: 165
Antigüedad: 18 años, 9 meses
Puntos: 0
Re: Ayuda con un ejercicio de php

Fácil....

Código PHP:
<form name='tablas' method='post' action='prueba.php'>
     <input type='text' name='columnas'>
     <input type='submit' value='Formar Tabla'>
</form>

<?
echo '<table>';
     echo 
'<tr>';
         for (
$i=0;$i<=$_POST[columnas];$i++)
         {
               echo 
'<td>{$i}</td>';
         }
     echo 
'</tr>';
echo 
'</table>';
?>
__________________
Guatemala - Guatemala