Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/07/2010, 12:09
cboretto
 
Fecha de Ingreso: julio-2010
Mensajes: 51
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: JavaScript y PHP

Dejo el codigo por si acaso.
Código PHP:
Ver original
  1. while ($myrow=mysql_fetch_array($registro))
  2.     {
  3.         $found = true;
  4.         $result .= "<tr class='th'><td class='td'>";
  5.         $result .= "$myrow[MedidaNombre]</td>";
  6.  
  7.         $result .= "<td>";
  8.         $result .= "$"."$myrow[MedidaPrecio]";
  9.         $result .= "</tr>";
  10.        
  11.         $result .= "<td>";
  12.         $result .= "<input type='text' name='CAJA' id='1'/>";
  13.         $result .= "</tr>";
  14.        
  15.        
  16.         $result .= "<td>";
  17.         $result .= "<label/>";
  18.         $result .= "</tr>";
  19.        
  20.         $result .= "<td>";
  21.         $result .= " <input type='checkbox' name='si' id='1' />";
  22.         $result .= "</tr>";
  23.        
  24.        
  25.        
  26.        
  27.     }
  28.         $result .= "</table>";
  29.      
  30.     mysql_close($mcon);
  31.      
  32.        
  33.         if(!$found) {
  34.  
  35.         echo "No se encontró el producto $prod , intente con otro nombre.";
  36.         echo "<br>";
  37.         echo "<br>";
  38.         echo "<a href=pre.php><u>Nueva Consulta</u></a>";
  39.  
  40.                     }else{
  41.  
  42. echo $result;
  43. echo "<br>";
  44. }  
  45. ?>
  46.  
  47. <body>
  48. <form id="form1" name="form1" method="post" action="pre.php">
  49.   <div align="center">
  50.     <input type="button" name="agrego" id="agrego" value="Agregar" />
  51.     <input type="submit" name="nvo" id="nvo" value="Nueva Consulta" />
  52.     <input type="button" name="ver" id="ver" value="Ver Presupuesto" />
  53.     <input type="reset" name="cancel" id="cancel" value="Cancelar" />
  54.   </div>
  55. </form>
  56. </div>
  57.  
  58. </body>
  59. </html>