Codice PHP:
<select name="idgame" onchange="if(this.text=='Altro'){document.getElementById('other').style.display='block'}else{document.getElementById('other').style.display='none'}">
  <?php
          
include("config.php");
          .....     
$risultati=mysql_query($query);
          
$num=mysql_numrows($risultati);
      
$i=0;
      while (
$i $num) {
              
$Nome=mysql_result($risultati,$i,"Nome");
              
$idGioco=mysql_result($risultati,$i,"idGioco");
  
?>
  <option value="<?php echo $idGioco?>"><?php echo $Nome?>
  </option>
  <?php 
                   $i
++;
       }
       
mysql_close($conn);
  
?>
</select>
<input id="other" style="display:none" name="other" type="text" value="Inserisci qui il nome del gioco" size="92" maxlength="40"/>