Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/10/2009, 06:31
machtcom
 
Fecha de Ingreso: junio-2009
Mensajes: 134
Antigüedad: 14 años, 10 meses
Puntos: 0
Respuesta: Problema combobox

Pues tio, no hay manera, me da bien con provincias pero con municipios me sigue dando error.

<label for="municipios">Y ahora un Municipio: </label>
<select name="municipios" id="municipios" onChange="submit()">
<option value="" <?php if (!(strcmp("", $_POST['muni_id']))) {echo "selected=\"selected\"";} ?>></option>
<?php
do {
?>
<option value="<?php echo $row_municipios['muni_id']?>"<?php if (!(isset($row_municipios['muni_id'], $_POST['muni_id']))) {echo "selected=\"selected\"";} ?>><?php echo $row_municipios['municipio']?></option>
<?php
} while ($row_municipios = mysql_fetch_assoc($municipios));
$rows = mysql_num_rows($municipios);
if($rows > 0) {
mysql_data_seek($municipios, 0);
$row_municipios = mysql_fetch_assoc($municipios);

¿es donde lo tengo que aplicar?