Codice PHP:
<select  id=mySelect1 onChange=\"window.open(this.options[this.selectedIndex].value,'_top')\" > 
<option value='
$_SERVER['PHP_SELF']?scelta=1'>Stato</option>
<option  value='
$_SERVER['PHP_SELF']?scelta=2'>Citta</option>
echo </select>"
;
switch(
$scelta)
{
case 
1:
        include 
'include/conf.inc.php';
        
$ris=mysql_query("select state from state;");
        
$num_riga=mysql_num_rows($ris);
        echo 
"<table border=2><tr><td>Stato</td><td></td><td></td><td></td></tr>";
        while(
$riga=mysql_fetch_array($ris))
        {
        print 
"<tr><td>".$riga['state']."</td>";
        }
        print 
"<td>input type=button value=Aggiungi onclick=></td>";
        print 
"<td>input type=button value=Modifica onclick=></td>";
        print 
"<td>input type=button value=Cancella onclick=></td></tr></table>";
        
case 
2:
        
$ras=mysql_query("select town from town;");
        
$num_riga=mysql_num_rows($ras);
        echo 
"<table border=2><tr><td>Località</td><td></td><td></td><td></td></tr>";
        while(
$riga=mysql_fetch_array($ras))
        {
        print 
"<tr><td>".$riga['town']."</td>";
        }
        print 
"<td>input type=button value=Aggiungi onclick=></td>";
        print 
"<td>input type=button value=Modifica onclick=></td>";
        print 
"<td>input type=button value=Cancella onclick=></td></tr></table>";
    } 
ho qualche problema con il php_self
dove sbaglio?
qualcuno mi aiuta?