Tratar de que al recargar la página no me recuerde lo que seleccione
Hola gracias por tu respuesta.
Pero cae ahora en la misma pagina y no me permite descargar jejejejejeejejejejej,
este es mi código
<form name="Documentos_de_gestion_del_cca" action="infraestructura2010.php" method="post">
<table style="text-align: left; margin-left: auto; margin-right: auto; background-color: rgb(102, 0, 204); width: 378px; height: 142px;" border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="background-color: rgb(224, 238, 254);">
<p class="titulo_principal" align="justify"><span style="font-family: Times New Roman,Times,serif;" class="titulo_principal">
</span></p>
<span class="texto_normal">
Búsqueda por
Sector:</span>
<p class="titulo_principal" align="justify"><small><span style="color: rgb(0, 0, 102); font-family: Times New Roman,Times,serif;">
</span></small><small><span style="color: rgb(0, 0, 102); font-family: Times New Roman,Times,serif; font-weight: bold;">
<select class="texto_normal" bgcolor="#000066" font-size="" 11px;font-family="" arial="" name="servicio_2010" action="infraestructura2010.php" method="post">
<option>------------</option>
<option>Edificio Administrativo</option>
<option>Hechicera</option>
<option>Campo de Oro - Facultad de Farmacia</option>
<option>La Liria</option>
<option>Rectorado</option>
<option>Tulio Febres Cordero</option>
<option>Forestal</option>
<option>Red Troncal Metropolitano RedULA</option>
</select>
</span></small></p>
<p class="titulo_principal" align="justify"><small><span style="color: rgb(0, 0, 102); font-family: Times New Roman,Times,serif; font-weight: bold;"></span></small>
<font color="#ffffff"><input name="submit" onclick="javascript:return Validar(this.form);" value="Enviar" type="submit"></font><small><span style="color: rgb(0, 0, 102); font-family: Times New Roman,Times,serif;">
</span></small>
<br>
<span style="font-family: Times New Roman,Times,serif; color: rgb(0, 0, 102);"><span style="font-family: Times New Roman,Times,serif;" class="informe_cti_busqueda"></span></span><br>
</p>
</td>
</tr>
</tbody>
</table>
<br>
<?php foreach($HTTP_GET_VARS as $variable=>$valor)
{ if ($variable8!="Enviar") { $$variable8=$valor;}
}
$sector = $_POST['servicio_2010'];
include("conectandose.php");
$db=Conectarse();
$result = mysql_query ("SELECT * FROM opsu_2010 WHERE servicio_2010 = '$sector'", $db);
if (!$result)
{
echo "Ocurrio un Error con la Tabla, con el primer Select";
exit;
echo "esta capturando la tabla";
}
$numero = mysql_num_rows($result);
$numero1 = mysql_num_fields($result);
if ($numero>0)
{
//$titulos=array('Documento');
echo "<table width=100% border=0 cellpadding='0' cellspacing='0'>";
echo "<tr bgcolor=#CCCCCC>";
for ($i=0;$i<$numero1;$i++)
{
echo "<th><font size='1'>";
echo "$titulos[$i]";
echo "</font> </hans ramirezhans ramirezth>";
}
echo "</tr>";
echo "<tr bgcolor=#FFFFFF>";
while ($row = mysql_fetch_array($result)) {
//// ESTO ES PARA QUE SALGA UNA LINEA
//echo "<td width ='$ancho'><font size='1'><a href='http://cca.ula.ve/documentos/$row[1]'>$row[2]</a></font></td>";
// ESTO ES PARA QUE VAYA DIRECTAMENTE ALLI
?>
<script type='text/javascript'>
window.location="http://cca.ula.ve/documentos/<?php echo $row[1]?>"
// AQUI ESTA EL WINDOWS LOCATION, SIN PARAMETROS
window.location="http://cca.ula.ve/documentos/infraestructura2010.php?location"
</script>
<?php
} echo "<tr>";
echo "</tr>";
echo "</table>";
}
else
echo " ";
mysql_close();
?><span style="color: rgb(0, 0, 102); font-family: Times New Roman,Times,serif;"></span><br>
<br>
<br>
<small><small>
</small></small><br>
<br>
</form>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body></html>