Ver Mensaje Individual
  #9 (permalink)  
Antiguo 25/03/2010, 11:40
etisdemian
 
Fecha de Ingreso: octubre-2009
Mensajes: 357
Antigüedad: 14 años, 6 meses
Puntos: 1
Respuesta: no realiza query ni recepcion de post

bueno este es todo el codigo . carxl


Código PHP:
Ver original
  1. <form name="enviar" action="zofliquid.php" method="POST">
  2. <table width="551">
  3. <tr>
  4. <td width="543" align="center">Seleccione el Tipo de Producto y las Áreas a buscar, luego pulse Buscar</td>
  5. </tr>
  6. </table>
  7. <br />
  8. <table align="center">
  9. <tr>
  10. <td>
  11. Liquidación
  12. </td>
  13. <td>
  14. Oferta
  15. </td>
  16. </tr>
  17. <tr>
  18. <td>
  19. <input name="tipo" type="radio" value="L" />
  20. </td>
  21. <td>
  22. <input name="tipo" type="radio" value="o" />
  23. </td>
  24. </tr>
  25. </table>
  26.  
  27. <div id="test1-content">
  28.     <div class="accordion_child">
  29.         <?php  
  30.  
  31. $cat=mysql_query('SELECT id_subcat, catuno, catdos, subcat, info_cat_1, info_cat_2, info_subcat FROM subcat
  32. WHERE info_subcat = "-" AND catuno= "1" ORDER BY `subcat`.`subcat` ASC ');
  33.  
  34.  while($row=mysql_fetch_array($cat)){
  35.  
  36.  ?>
  37.  
  38. <table border="0">  
  39.       <tr>
  40.      
  41.   <td><input name="terminobusqueda" type="checkbox" value="<?php echo $row['catdos'];?>" /></td>
  42.   <td scope="col" style="color:#007997"><fieldset><span class='Estilo7'><?php echo $row['info_cat_2']; ?></span></fieldset></td>
  43.   </tr>
  44. </table>
  45.  
  46.    <br />
  47.  <?php } ?>
  48.  
  49.     </div>
  50.   </div>
  51.  
  52.  }?>
  53.  
  54.  
  55.  
  56.  
  57. <div align="center">
  58. <button type="submit" id="xx" name="enviar">
  59.   <img src="_imagenes/aceptar.png" alt="aceptar" />
  60.   </button>
  61.   </div>
  62.  
  63.  
  64.  
  65.  </form>
  66.  <?php
  67.  
  68. if(isset($_POST['tipo']))
  69.  
  70. {
  71.  
  72. $quer=mysql_query("SELECT in_familia_cod, marca, in_titulo from inventario where in_familia_cod='".$_POST['terminobusqueda']."' AND marca='".$_POST['tipo']."'");
  73.  
  74. while($roi=mysql_fetch_array($quer));
  75. {
  76.  
  77. echo $roi['in_titulo'];
  78. echo var_dump($_POST['enviar']);
  79. echo var_dump($_POST['tipo']);
  80. echo var_dump($_POST['terminobusqueda']);
  81.  }
  82.  
  83.  }?>