Ver Mensaje Individual
  #21 (permalink)  
Antiguo 28/08/2008, 11:41
jrodriguez30
 
Fecha de Ingreso: abril-2008
Mensajes: 151
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: variables javascript

Si amigo... Te envio el codigo para q tengas una idea....
echo "<form name = formulario action = 'adicionapedido.php' method = 'get'>";
echo "<table border='10' id='tabla'>";
echo "<tr><th bgcolor='#C0D9D9'>Fecha</th><th bgcolor='#C0D9D9'>Categoria</th><th bgcolor='#C0D9D9'>Cod</th><th bgcolor='#C0D9D9'>Descripcion</th><TH bgcolor='#C0D9D9'>Unidad</th><TH bgcolor='#C0D9D9'>Cantidad</th>";
$i = 0;
while($sql = mysql_fetch_array($consulta))
{
echo "<tr>";
echo "<td>".$fecha_."</td>";
echo "<td>".$sql['subcategoria']."</td>";
$subcat = $sql['subcategoria'];
echo "<td>".$sql['codigo']."</td>";
$codigo = $sql['codigo'];
echo "<td>".$sql['descrip']."</td>";
$desc = $sql['descrip'];
?><td class="unidad"><input type="text" name=<?php echo "und".$i ?> id ="<?php echo "und".$i ?>"></td>
<td class="cantidad"><input type="text" name=<?php echo "cant".$i ?> id ="<?php echo "cant".$i ?>"></td> <?
echo "</tr>";
$i++;
}
echo "</table>";
echo "</form>";