ciao.. scusate e non mi sono presentato prima di postare...

il problema è questojavascript:smilie(':dh%C3%B2:')
Mannaggia li pescetti: ho sviluppato un sito php + mysql testandolo su uno spazio web aruba perfettamente, spostandolo sullo spazio definitivo di un'altra azienda di hosting alcuni script girano e altri no... se posto le pagine qualcuno riuscirebbe a dirmi dove stanno gli errori di compatibilità? premetto che non sto cercando qualcuno che mi rifaccia le pagine ma solo che mi si indichi l'errore, poi me le sistemo io. in particolarre le query in lettura funzionano ma quelle in scrittura no...

Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="stili.css" rel="stylesheet" type="text/css" />
<? include "std_header.inc" ?>

<? if($_GET['action']=='insert'){ 
$id$_GET['id'];

$dir "www.sportcarsavona.it";
$subdir "idee/img";
$abpath "/web/htdocs/$dir/home/$subdir";

@
copy($img1"$abpath/$img1_name");

if(
$img1_name==''){
$foto1 $_POST['img1_old'];
} else{
$foto1 "$dir/$subdir/$img1_name";
}

  if(
$img1_name != ''){
   
$dimensione=getimagesize($img1); 
   
$w=$dimensione[0];
$h=$dimensione[1];


if(
$w>=$h){
$stileimmagine='larghezza';
}elseif(
$w<$h){
$stileimmagine='altezza';
}
}else{
$stileimmagine=$_REQUEST[orientamento];
}



    
$query "UPDATE luoghi SET nome='$_POST[nome]', id_luoghi='$_POST[id_luoghi]', prezzo='$_POST[prezzo]', dimensioni='$_POST[dimensioni]', path_foto='$foto1', giacenza='$_POST[giacenza]', id_gruppi_luoghi='$_POST[id_gruppi_luoghi]',id_cat_luoghi='$_POST[id_cat_luoghi]', attivo='si', note='$_POST[note]', orientamento='$stileimmagine' WHERE id_luoghi=$_POST[id_luoghi]"
    
$result mysql_query($query) or die('Query failed: ' mysql_error());
header("Location: view3.php");
}
if(
$_GET[img1]==''){
$foto1 $_GET[img1_old];
} else{
$foto1 $_GET[img1];
}

?> 
<p align="center">Modifica prodotto</p>
<p align="center">[url="view3.php"]torna al men&ugrave; principale[/url]  </p>
<form name="form" action="edit_luoghi.php?action=insert" method="post" enctype="multipart/form-data"> 
  <script type="text/javascript">
function aggiorna(){
    document.form.action = "edit_luoghi.php";
    document.form.method = "GET";
    document.form.submit();
}


</script> 
  <? $aggiornaGruppiLuoghi$_GET['id_gruppi_luoghi'];
  
  if(
$_GET['orientamento'] == 'altezza'){
   
$stilefoto'altezza';
   }elseif(
$_GET['orientamento'] == 'larghezza') {
   
$stilefoto'larghezza';
   }


?> 

  <table border="1" align="center" cellpadding="3" cellspacing="0">
   <input type='hidden' name='img1_old' value='<? echo $foto1?>' />
    <input type='hidden' name='orientamento' value='<? echo $_REQUEST[orientamento]; ?>' />
    <tr>
    <td colspan="3">[img]<? echo "http://$foto1"?>[/img]'/></td>
    </tr>
    <tr>
    <td colspan="3">[img]<? echo "http://$foto1"?>[/img]2'/></td>
    </tr>
    <tr>
    <td colspan="3">[img]<? echo "http://$foto1"?>[/img]3'/></td>
    </tr>
    <tr>
    <td colspan="3"><input type='file' name='img1' size='30'/></td>
    </tr>
    <tr> 
      <td>nome</td>
      <td><? echo $_GET[nome]; ?></td>
      <td> <input type="text" name="nome" size="40" value="<? echo $_GET[nome]; ?>" > </td> 
    </tr> 
    <tr> 
      <td>codice</td> <td><? echo $_GET[id_luoghi]; ?></td>
      <td> <input type="text" name="id_luoghi" size="40" value="<? echo $_GET[id_luoghi]; ?>" ></td> 
    </tr>
     <tr> 
      <td>categoria</td> 
      <td colspan="2"> <select name="id_gruppi_luoghi" onChange="aggiorna()"> 
          <option value="">Categorie</option> 
          <? $query "SELECT * FROM gruppi_luoghi ORDER BY id_gruppi_luoghi, nomeGruppi";
  
$result mysql_query($query) or die('Query failed: ' mysql_error());
  
  
  while (
$luogo mysql_fetch_array($resultMYSQL_ASSOC)) {  
  if( 
$luogo['id_gruppi_luoghi'] == $_GET['id_gruppi_luoghi']){
  
$selezionato 'selected';
  }else{
  
$selezionato '';
  }
 echo 
"<option value='$luogo[id_gruppi_luoghi]$selezionato>$luogo[nomeGruppi]</option>";

  } 
  
?> 
        </select> </td> 
    </tr> 
    <tr> 
      <td>sottocategoria</td> 
      <td colspan="2"> <select name="id_cat_luoghi"> 
          <? 
  
if($aggiornaGruppiLuoghi){
  
$query "SELECT * FROM cat_luoghi WHERE id_gruppi_luoghi = $aggiornaGruppiLuoghi ORDER BY id_gruppi_luoghi, nomeCat";
  
$result mysql_query($query) or die('Query failed: ' mysql_error());
  
  
  while (
$luogo mysql_fetch_array($resultMYSQL_ASSOC)) { 
    if( 
$luogo['id_cat_luoghi'] == $_GET['id_cat_luoghi']){
  
$selezionato2 'selected';
  }else{
  
$selezionato2 '';
  }
   
 echo 
"<option value='$luogo[id_cat_luoghi]'  $selezionato2$luogo[nomeCat]</option>";
  echo 
$luogo['nomeCat'];} 
  }
  
?> 
        </select> </td> 
    </tr>
    <tr>
      <td colspan="3"></td>
    </tr> 
    <tr> 
      <td>dimensioni</td> <td><? echo $_GET[dimensioni]; ?></td>
      <td> <input type="text" name="dimensioni" size="40" value="<? echo $_GET[dimensioni]; ?>"> </td> 
    </tr> 
  
    <tr> 
      <td>prezzo</td> <td><? echo $_GET[prezzo]; ?></td>
      <td> <input type="text" name="prezzo" size="40" value="<? echo $_GET[prezzo]; ?>"> </td> 
    </tr> 
    <tr> 
      <td>giacenza</td> <td><? echo $_GET[giacenza]; ?></td>
      <td><input type="text" name="giacenza" size="40" value="<? echo $_GET[giacenza]; ?>"></td> 
    </tr> 
    <tr> 
      <td>note</td> <td><? echo $_GET[note?></td>
      <td> <textarea name="note" cols="40" rows="2">
<? echo $_GET[note?>
</textarea> </td> 
    </tr> 
    
    <tr> 
      <td colspan="3" align="center"><input name="reset" type="reset" value="annulla" />
      <input type="submit" value="inserisci"> </td> 
    </tr> 
  </table> 
</form> 

 
<p align="center"> [url="view3.php"]torna al men&ugrave; principale[/url] </p>