Ver Mensaje Individual
  #8 (permalink)  
Antiguo 26/12/2004, 10:05
Avatar de centinela77
centinela77
 
Fecha de Ingreso: diciembre-2004
Ubicación: León
Mensajes: 143
Antigüedad: 19 años, 4 meses
Puntos: 1
igual es que te estas complicando demasiado la vida ...

Código PHP:

<html>
<head>
</head>
<body>
<form action="<?=$_SERVER["PHP_SELF"]?>" method="get">
<select name="filas">
<? for($i=1$i<=5$i++){
echo 
"<option value='".$i."'>".$i."</option>";
}
?>
</select>
<input type="hidden" name="crear" value="tabla">
<input type="submit" value="crear">
</form>
<?
if(isset($_GET["crear"])){
    echo 
"<table border='0' cellpadding='0' cellspacing='0' width='680'>";
   for(
$i=1$i<=$_GET["filas"]; $i++){
        echo 
"
      <tr>
       <td align=center width=80><input type=text name=cantidad></td>
       <td align=center width=100><input type=text name=item></td>
       <td align=center width=220><input type=text name=articulo></td>
       <td align=center width=140><input type=text name=valor></td>
       <td align=center width=140><input type=text name=total></td>
      </tr>"
;
    }
    echo 
"</table>";
}
?>
</body>
</html>