je vais surment passer pour un gland mais j'ai fais plein de tuto, relu mon bouquin mais pas moyen de trouver donc voici mon code d'essai pour l'input type=file
<html>
<body>
<center>
<form ENCTYPE="multipart/form-data" method='POST' action=''>
URL de l'image:<br>
<input type='file' name='pix'><br>
<input type='hidden' name='MAX_FILE_SIZE' value='2097152'>
<br>
<input type='submit' value='go!'><br>
<br>
</form>
<?php
import_request_variables("P","V_");
if(isset($V_pix))
{
echo "//".$_FILES['pix']['name']."<br>//".
$_FILES['pix']['size']."<br>//".
$_FILES['pix']['type']."<br>//".
$_FILES['pix']['tmp_name']."<br>";
if(is_uploaded_file($_FILES["pix"]["tmp_name"]))
{
echo "fichier uploader";
}
else
{
echo "marche pas !!!!";
}
}
?>
</center>
</body>
</html>
et voila la reponse du server :P
le formulaire
+
//Test_oculaire.jpg
//0
//
//marche pas !!!!
d'ou que j'ai merdé ? Configuration: Windows XP
Internet Explorer 6.0

