sì hai ragione... ero partito da lì ma poi ho cominciato a fare tentativi sbagliati.

La pagina del form ha questa struttura:

Codice PHP:

<form action="modifica.php" method="post" enctype="multipart/form-data" name="form1">

  

<?php 
  
include ("config.inc.php"); 
  include (
"connect.php");
  

  
$id $_GET['id'];
    
  
$query ="SELECT * FROM $tabarticoli WHERE idart='$id'";
  
$result mysql_query($query,$db);
   while(
$row mysql_fetch_array($result)) { 
  
  echo 
"[b]ID:[/b] $id";
  
$img1 $row['immagine']; 
  
$img2 $row['immagine2'];
  
$img3 $row['immagine3'];
  
$percorso "TBASE/img/";
  
//$_FILES['userfile']['name']
  
?>
    <input name="posted" type="hidden" id="posted" value="posted" />
    <input name="id" type="hidden" value="<?php echo $row['idart']; ?>" />
  </p>
  


    <label>

    </label>
</p>
  <table width="800" border="0">
    <tr>
      <td width="169" bgcolor="#009900"><span class="Stile3 Stile9 Stile12">[b]articolo[/b]</span></td>
      <td width="288" bgcolor="#009900"><span class="Stile3 Stile9 Stile12">[b]descrizione Promo[/b]</span></td>
      <td colspan="2" bgcolor="#009900"><span class="Stile3 Stile6">
        <label>

        </label>
      </span></td>
    </tr>
    <tr>
      <td rowspan="3" valign="top" bgcolor="#66CC33"><input name="articolo" type="text" class="Stile6" id="articolo" value="<?php echo $row['articolo']; ?>" /></td>
      <td rowspan="3" bgcolor="#66CC33"><span class="Stile3 Stile6">
        <textarea color="yellow" name="descrizione" cols="40" rows="5" id="descrizione"><?php echo $row['descrizione'];   ?></textarea>
      </span></td>
      <td width="133" bgcolor="#66CC33"><div align="right"><span class="Stile6 Stile3">[b]
        <input type="checkbox" name="promozioni" id="promozioni" />
      [/b]</span></div></td>
      <td width="192" bgcolor="#66CC33"><span class="Stile6 Stile3 Stile9">[b]promozioni[/b]</span></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33"><div align="right"><span class="Stile6 Stile3">[b]
        <input type="checkbox" name="novita" id="novita" />
      [/b]</span></div></td>
      <td bgcolor="#66CC33"><span class="Stile6 Stile3 Stile9">[b]novita[/b]</span></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33"><div align="right"><span class="Stile6 Stile3">[b]
        <input type="checkbox" name="esclusivo" id="esclusivo" />
      [/b]</span></div></td>
      <td bgcolor="#66CC33"><span class="Stile6 Stile3 Stile9">[b]esclusivo[/b]</span></td>
    </tr>
    <tr>
      <td bgcolor="#009900"><span class="Stile3 Stile9 Stile12">[b]prezzo[/b]</span></td>
      <td bgcolor="#009900"><span class="Stile3 Stile9 Stile12">[b]descrizione Dettaglio[/b]</span></td>
      <td colspan="2" bgcolor="#009900"><span class="Stile6"></span></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33"><input name="prezzo" type="text" class="Stile6" id="prezzo" value="<?php echo $row['prezzo']; ?>" /></td>
      <td rowspan="4" bgcolor="#66CC33"><span class="Stile3 Stile6">
        <textarea name="dettaglio" cols="40" rows="5" id="dettaglio"><?php echo $row['dettaglio'];   ?></textarea>
      </span></td>
      <td colspan="2" rowspan="4" bgcolor="#66CC33"><span class="Stile6"></span></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33"><span class="Stile6 Stile3 Stile9">[b]sconto %[/b]</span></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33"><input name="sconto" type="text" class="Stile6" id="sconto" value="<?php echo $row['sconto']; ?>" /></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33"></td>
    </tr>
    <tr>
      <td bgcolor="#009900"><span class="Stile6"></span></td>
      <td rowspan="4" bgcolor="#009900"><span class="Stile6"></span></td>
      <td colspan="2" rowspan="4" bgcolor="#009900"><span class="Stile6"></span></td>
    </tr>
  </table>
  <table width="800" border="0">
    <tr>
      <td bgcolor="#009900"><span class="Stile10">immagine 1 presente sul server:</span></td>
      <td bgcolor="#009900"><span class="Stile10">immagine 2 presente sul server:</span></td>
      <td bgcolor="#009900"><span class="Stile10">immagine 3 presente sul server:</span></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33"><?php echo "[img]img/$img1[/img] ";?></td>
      <td bgcolor="#66CC33"><label><?php echo "[img]img/$img2[/img] ";?> </label></td>
      <td bgcolor="#66CC33"><?php echo "[img]img/$img3[/img] ";?></td>
      <input name="img1" type="hidden" value="<?php $img1?>" />
      <input name="img2" type="hidden" value="<?php $img2?>" />
      <input name="img3" type="hidden" value="<?php $img3?>" />
    </tr>
    <tr>
      <td bgcolor="#009900"><span class="Stile10">immagine 1 nuova:</span></td>
      <td bgcolor="#009900"><span class="Stile10">immagine 2 nuova:</span></td>
      <td bgcolor="#009900"><span class="Stile10">immagine 3 nuova:</span></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33"><input type="file" name="userfile" id="userfile"/></td>
      <td bgcolor="#66CC33"><label>
        <input type="file" name="userfile2" id="userfile2" />
      </label></td>
      <td bgcolor="#66CC33"><input type="file" name="userfile3" id="userfile3" /></td>
    </tr>
    <tr>
      <td bgcolor="#66CC33">


        </p>
        

</p></td>
      <td bgcolor="#66CC33">


        </p>
        


          <input type="submit" name="modifica" id="modifica" value="MODIFICA DATI" STYLE="font-family:sans-serif; font-size: 10px;
font-style:bold; background:#006699 none; color: #FFFFFF; width:10em"/>
        </p></td>
      <td bgcolor="#66CC33"></td>
    </tr>
  </table>
 
  <?php ?>
</form>
grazie per il supporto.