el script del
select.php es el siguiente:
Código PHP:
<?php
// '<input name="zona" type="text" value="'.$zona.'" style="display:none" />';
// ';
?>
<html>
<head>
<title>Pagina de Seleccion de Ciudades</title>
<script language="javascript" src="jsrsClient.js"></script>
<script language="javascript" src="selectphp.js"></script>
<style>
body{
text-align:center;
background-color: #205393;
}
.texto {
font-family: "Estrangelo Edessa";
color: #FFF;
}
#sel {width:100%;margin: 0px auto 0px auto;}
#show {
background-color:#205393;
width:80%;
height:45px;
text-align:center;
margin-top:15px;
padding-top:10px;
}
.ciudades {
font-family: "Tekton Pro Ext";
color: #F00;
}
</style>
</head class="texto">
<?php
$codigo1 = $_GET['buscar'];
$zona = $_GET['buscar'];
$pais = isset($_POST['lstPais']) ? $_POST['lstPais'] : -99;
$estado = isset($_POST['lstEstado']) ? $_POST['lstEstado'] : -99;
$ciudad = isset($_POST['lstCiudad']) ? $_POST['lstCiudad'] : -99;
?>
<body onLoad="preselect('<?php echo $pais;?>', '<?php echo $estado;?>', '<?php echo $ciudad;?>', 1);" onhelp="jsrsDebugInfo();return false;">
<h2 class="ciudades">Selección de Ciudades</h2>
<form name="QForm" method="post" action="negocios.php">
<div id="sel">
<table class="normal" width="575" BORDER="0" CELLSPACING="2" CELLPADDING="2" VALIGN="TOP">
<?php
SelectBox ("Pais", "lstPais");
SelectBox ("Estado", "lstEstado");
SelectBox ("Ciudad", "lstCiudad");
?>
</table>
<div id="show">
<input name="zona" type="text" value="<?php echo $zona; ?>" style="display:none">
<input type="submit" name="cmdSubmit" value="Enviar" id="cmdSubmit" title="Mostrar datos seleccionados" style="" /><br />
</div>
</div>
</form>
</body>
</html>
<?php
function SelectBox( $Label, $selectName ){
?>
<tr ALIGN="LEFT">
<td width="15%"><?php echo $Label ?></td>
<td align="left">
<select name="<?php echo $selectName ?>">
<option></option><option></option><option></option>
<option>--------- Sin Registros ---------</option>
</select>
</td>
</tr>
<?php
}
?>
Esta es la pagina q quiero q me cargue amigo a parte de la que me carga al principio..
Espero sea esta.