Codice PHP:
if(isset($_GET['countryCode']))
{
    
$stato $_GET['countryCode'];
    
$query mysql_query("select citta from tabella where stato = '$stato' ");

    while(
$row mysql_fetch_assoc($query)){
    
$citta $row['citta'];
    echo 
"obj.options[obj.options.length] = new Option('$citta','$citta');\n";
    }