");
$tn="foto";$tn=$tn.$su;
move_uploaded_file($tp,$tn);
echo " chargement correct du fichier nommé : ";echo $tn;
echo " de taille : ";echo $ts;
echo " octets
sur le serveur sous le nom ";echo $tn; echo"";
#ajout de la foto aux messages
#ajouter le nouveau message au fichier stock.txt
$fh=fopen("stock.txt","a");
$msg="";$msg=$msg."\n";fwrite($fh,$msg);fclose($fh);
echo("
image ajoutée au dernier message avec le nom".$tn);
echo("
retour à la causette bis");
?>