je ne comprent pas pourquoi quand j'envoi mon formulaire il me repond
Not Found
The requested URL /form6.7.php was not found on this server.
alors que je mit le fichier dans un fichier tamporaire et que je l'ai renomer
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Transfert de fichier</title>
</head>
<body>
<form action="form6.7.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
<fieldset>
<legend>transfert de fichier</legend>
<table>
<tbody>
<tr>
<th>Fichier</th>
<td><input type="file" name="fich" accept="image/gif" size="50" /></td>
</tr>
<tr>
<th>Clic!</th>
<td><input type="submit" value="Envoi" /></td>
</tr>
</tbody>
</table>
</fieldset>
</form>
<?
if(isset($_FILES))
{
echo"Taille maximale autorisée:",$_POST["MAX_FILE_SIZE"],"octets<hr/>";
echo"<b>Clé et valeur du tableau\$_FILES</b><br/>";
foreach($_FILES["fich"]as $cle=>$valeur)
{
echo "clé : ".$cle ." valeur:".$valeur."<br />";
}
//enregistrememt et renomage du fichier
$result=move_uploaded_file($_FILE["fich"]["tmp_name"],"imagephp.gif");
if($result==TRUE){echo"<hr/><big>le transfert est réalisé!</big>";}
else{echo"<hr/>Erreur de transfert n ",$_FILES["fich"]["error"];}
}
?>
</body>
</html>