Ver Mensaje Individual
  #15 (permalink)  
Antiguo 14/04/2006, 14:26
canarion696969
 
Fecha de Ingreso: enero-2005
Mensajes: 34
Antigüedad: 19 años, 3 meses
Puntos: 0
Aqui lo tienes:

echo"<html>";
echo"<head>";
echo"<title>HERRAMIENTA PODCAST</title>";
echo"</head>";
echo"<BODY text=#000000 bgColor=#f5c743 leftMargin=0 topMargin=0>";
echo <<<EOT
<table borderColor=#2182e7 ALIGN="center" border="0" width="25%">
<form id="form1" method="GET" action="filtrarcategoria.php">
<tr>
<td valign="buttom">
<select name="tipos" onChange="document.getElementById('combo_valuess') .value=this.options[this.selectedIndex].value;" onClick="document.getElementById('combo_value').va lue=this.options[this.selectedIndex].value;">
<option selected>SELECCIONE....
EOT;



for( $i=1; $i <= $num_resultados; $i++ )
{
$row = mysql_fetch_array($resultado); echo'<option value="'.$row"id_idioma"].'">'.$row["descripcion"];
}
echo'</select>';
echo'</td>';
echo'<td valign="buttom">';
echo'<INPUT TYPE="submit" value="FILTRAR">';
echo"</td>";
echo"</tr>";
echo"</form>";
echo"</table>";
echo'<table borderColor=#2182e7 ALIGN="center" cellspacing="0" cellpadding="0" border="0" width="10%">';
echo"<tr align='left'>";
echo'<td align="center">';
echo'<form id="form2" method="get" name="cat" action="cargarcategoria.php">';
echo'<INPUT TYPE="submit" value="AÑADIR CATEGORIA">';
echo'<INPUT TYPE="hidden" value="" name="combo_value" id="combo_value">';
echo"</form>";
echo"</td>";

echo'<td align="center">';
echo'<form method="get" name="fich" action="cargarcategoria_archivos.php">';
echo'<INPUT TYPE="submit" value="AÑADIR FICHERO">';
echo'<INPUT TYPE="hidden" value="" name="combo_values" id="combo_values">';

echo"</form>";
echo"</td>";
echo'<td align="center">';
echo'<form method="post" action="cargaridiomas.php">';
echo'<INPUT TYPE="submit" value="AÑADIR IDIOMAS">';
echo"</form>";
echo"</td>";
echo'<td align="center">';
echo'<form method="get" id="form3" name="enlaces" action="cargarenlace.php">';
echo'<INPUT TYPE="submit" value="AÑADIR ENLACES">';
echo'<INPUT TYPE="hidden" value="" name="combo_valuess" id="combo_valuess">';
echo"</form>";
echo"</td>";
echo'<td align="center">';
echo'<form method="post" action="busqueda.php">';
echo'<INPUT TYPE="submit" value="ACTUALIZAR">';
echo"</form>";
echo"</td>";
echo"</tr>";
echo"</table>";
echo"</body>";
echo"</html>";


En el select tienes los eventos para actualizar en el hidden correspondiente los botones añadir categoria y añadir enlace.

Intento poner otor evento en el select para añadir ficheros y no consigo actualizar el hidden de este forms

Muchas gracias de nuevo