PHP Multpart-form Data (Dateiupload)

Ähem was ist das genau und wie mache ich so etwas?


z.B. so (test.pgp)?
PHP:
<body>
  <form action = "test.php" method="post">
    <input type"file" name="file1">
    <input type="submit" value="Ab daf&uuml;r">
  </form>
<?php
  if (move_uploaded_file($_FILES['file1']['tmp_name'], 'HP/'.$_FILES['file1']['name'])) {
    echo "upload ok";
  } else {
    echo "nix da";
  }
?> 
</body>
Nur, um mal zu sehen, ob Du (und was für) eine Fehlermeldung bekommst.

Gruß
.
 
Zurück