Lista desplegable
Requerimientos Cambios en la linea
Informacion
Requerimientos
Asesoria Tecnica
Requerimientos
Reclamos
y esto me ocurre con todos, aqui les dejo el codigo
index_tipificar.php
Código HTML:
<script> var vacia = ""; function categorias(){ document.miForm.action = "selec2.php"; document.miForm.selec1.value = vacia; document.miForm.submit() } </script> <form name="miForm" id="miForm" method="post"> <table width="0" border="0" cellspacing="0"> <tr> <td>Categorias:</td> <td><? include ("conex.php"); $link=Conectarse(); $sSQL="Select * From categorias Order By seleccion"; $result=mysql_query($sSQL); echo '<select name="selec1" id="selec1" onchange="categorias()">'; //Generamos el menu desplegable while ($row=mysql_fetch_array($result)) {echo '<option>'.$row["seleccion"];} ?> </select></td> </tr> </table> </form>
Código HTML:
<script> var vacia = ""; function categorias(){ document.miForm.action = "selec2.php"; document.miForm.selec1.value = vacia; document.miForm.submit() } function categorias2(){ document.miForm.action = "selec3.php"; document.miForm.submit() } </script> <?php $selec1 = $_POST['selec1']; $selec2 = $_POST['selec2']; ?> <form name="miForm" id="miForm" method="post"> <table width="0" border="0" cellspacing="0"> <tr> <td>Categorias:<? include ("conex.php"); $link=Conectarse(); $sSQL="Select * From categorias Order By seleccion"; $result=mysql_query($sSQL); echo '<select name="selec1" id="selec1" onchange="categorias()">'; //Generamos el menu desplegable while($row=mysql_fetch_array($result)) {echo '<option selected="selected">'.$selec1.'</option> <option>'.$row["seleccion"];} ?> </select></td> <td><? $sSQL="Select * From categorias2 where relacion='$selec1' Order By seleccion"; $result=mysql_query($sSQL); echo '<select name="selec2" id="selec2" onchange="categorias2()">'; //Generamos el menu desplegable while ($row=mysql_fetch_array($result)) {echo '<option>'.$row["seleccion"];} ?> </select></td> </tr> </table> </form>
si alguien me puede ayudar se lo agradecere infinatemente.
Saludos