ciao ragazzi, mi posto il mio codice: dovrebbe uploadare files in uno spazio web altervista, ma non copia ne i files, ne il campo "nomefile" nella tabella del databse viene aggiornato:

Codice PHP:

  <form enctype="multipart/form-data" method="post" action="aoe2.php" onsubmit="return controlla(this);">
    <table width="99%" border="1">
      <tr>
        <td width="34%">#Nome_File:</td>
        <td width="66%"><input type="file" name="nomefile"></td>
      </tr>
      <tr>
        <td>#Tipo_File:</td>
        <td><input type="radio" name="radiobutton" value="1">
          Scenario 
          <input type="radio" name="radiobutton" value="2">
          Campagna 
          <input type="radio" name="radiobutton" value="3">
          Altro</td>
      </tr>
      <tr>
        <td>#Titolo_File:</td>
        <td><input type="text" name="titolo"></td>
      </tr>
      <tr>
        <td>#Mittente:</td>
        <td><input type="text" name="mittente"></td>
      </tr>
    </table>
    


      <input type="submit" name="Submit" value="#Invia">
    </p>
    </form>



<font face="Trebuchet MS" color="#FFFFFF" size="4">#Age_of_Empires_2</font></p>


<font color="#FFFFFF">[url="#"]#Invia file.[/url]</font></p>

<?
$conn 
mysql_connect("localhost""UN""Password")
       or die(
"Connessione non riuscita: " mysql_error());
mysql_select_db("my_lsdfreetime",$conn); 

$nomefile=$_POST['nomefile'];
$radiobutton=$_POST['radiobutton'];
$titolo=$_POST['titolo'];
$mittente=$_POST['mittente'];
$uploaddir="/membri2/lsdfreetime/uploads/aoe/"//permessi già a 777

$query="INSERT INTO aoe (nomefile, tipo, titolo, mittente) VALUES ('$nomefile', '$radiobutton', '$titolo', '$mittente')"

$set_result=mysql_query($query) or print("
Query non eseguita"
);
if(!
$set_result)
    die(
"
ERRORE contattare [email]lsdfreetime@altervista.org[/email]"
);
else {
    echo
""
    
copy($nomefile,"$uploaddir");
    
unlink($nomefile);
    
$miamaill="lsdtfreetime@altervista.org";
    
$oggetto="nuovo file inserito";
    
mail($miamaill$oggetto$nomefile$mittente);
    }

mysql_close($conn);
?>
dove sbaglio?
grazie