Io ne ho fatto uno di prova ma nn e' un modulo...
Codice PHP:
<?php
if (!isset($_POST['uppa'])) {
echo "<form action=\"{$_SERVER['PHP_SELF']}\" method=\"post\" enctype=\"multipart/form-data\">
File <input type=\"file\" name=\"file\"><br><br>
<center><input type=\"submit\" name=\"uppa\" value=\"Uppa\"></center>
</form>"; }
else {
echo "<center>";
if (copy($_FILES['file']['tmp_name'], $_FILES['file']['name']))
echo "File caricato! <br><br>". print_r($_FILES) ."";
else
echo "File nn caricato...<br><br>". print_r($_FILES) .""; }
?>
Ciao!