Hi,
Thanks for your answer.. I'll try to work around from here.. although "the cities" can't be in the javascript, they are dynamic and populated from a SQL database so I need them not to be static.. on the other hand the countries are limited and they can be written in the javascript..
It's really hard to find example of this around the internet.. i've seen onchange() examples.. ajax.. php.. I really thought this would be more easy since it's something we see like in so many websites..
I'm able to populate my 2nd list like this....
<?php
$getUser_sql = 'SELECT * FROM `jos_cruzeiros`';
$getUser = mysql_query($getUser_sql);
?>
<select name="subcat">
<?php while ($row = mysql_fetch_array($getUser)) {?>
<option value="<?php echo $row['ID']; ?>">
<?php echo $row['nome']; ?></option>
<?php } ?>
But I'd like for example to execute that query only when option "Cruzeiros" is selected in the first list
<select name="cat"><option>-</option> <option>Circuitos</option><option>City Breaks </option><option>Cruzeiros</option><option>Canárias</option><option>Escapadinhas</option><option>Familia</option><option>Solteiro</option><option>Aventura</option><option>Cultura</option><option>Sénior</option><option>Desporto</option><option>Lua de Mel</option><option>Gay-Friendly</option><option>Natureza</option><option>Religioso</option></select>