Bonjour,
j'ai téléchargé ce code pour upload un fichier mais je ne comprend pas comment ça marche?
SVP vous avez m'aider?
ce code est:
<script language='javascript'>
function filegetname(){var name=document.getnamefile.file.value;
location.href="?namefile="+name;
}
</script>
<div align="left">Sélectionner ce fichier image:<br />
<form enctype="multipart/form-data" action="" method="post">
<input name="file"type="file"size="100" /><input type="submit"value="Go"onclick="filegetname();return false;" /></div>
<? if (!empty($_GET['namefile'])){echo 'Le nom sélectionné : '.$_GET['namefile'];} ?>
</form>
Configuration: Windows XP
Firefox 3.5.3