ciao, ho un form per fare l'upload di due file ma quando li carico e clicco su invia, non mi fa l'upload.

questo è il codice:

Codice PHP:
<input type="file" name="file1" size="18" maxlength="40">
<input type="file" name="file2" size="18" maxlength="40">


<?
$limitedext 
= array(".gif",".jpg");
$sizebytes "200000";
$dl "http://www.sito.it/pann_contr_comune/images_ana_utenti";
$absolute_path "/web/htdocs/www.sito.it/home/pann_contr_comune/images_ana_utenti";


$dir "dir";
if (
$file1 != "" || $file2 != "") {

$ext strrchr($file_name1,'.');
if ((!
in_array($ext,$limitedext))) {
$msg "Il file che stai pubblicando non ha un'estensione corretta";
}
else if ((
$file_size $sizebytes)) {
$msg "Il file è troppo grande. Deve essere di $sizebytes bytes o meno";
}
else {
copy($_FILES['file1']['tmp_name'], "$absolute_path/$file_name1") or die("Il file che stai pubblicando non può essere copiato sul server");
}

$ext strrchr($file_name2,'.');
if ((!
in_array($ext,$limitedext))) {
$msg "Il file che stai pubblicando non ha un'estensione corretta";
}
else if ((
$file_size $sizebytes)) {
$msg "Il file è troppo grande. Deve essere di $sizebytes bytes o meno";
}
else {
copy($_FILES['file2']['tmp_name'], "$absolute_path/$file_name2") or die("Il file che stai pubblicando non può essere copiato sul server");
}

}




$sql "UPDATE ana_utenti 
SET foto_primo_piano='
$file_name1', foto_intera='$file_name2'
WHERE ana_utenti.id_ana_utenti = '
$utente'";
mysql_query($sql,$conn) or die (mysql_error());

?>