<?php
if(!empty($_FILES)) {
if(is_uploaded_file($_FILES['fichier']['tmp_name'])) {
$sourcePath = $_FILES['fichier']['tmp_name'];
$targetPath = "images/".$_FILES['fichier']['name'];
if(move_uploaded_file($sourcePath,$targetPath)) {
?>
<img src="<?php echo $targetPath; ?>" width="100px" height="100px" />
<?php
}
}
}
?>