Anonym: PHP Upload

Beitrag lesen

Wow!!!! Cooles neues Design vom Forum erstmal :)

Ich hätte eine Frage zu PHP! Versuche gerade ein File Upload via PHP.

  
<?php  
if ($_POST[upload]==1)  
{  
move_uploaded_file($_FILES['thefile']['tmp_name'],"data/.jpg");  
}  
  
?>  
  
<form id="form1" name="form1" method="post" enctype="multipart/form-data" action="action="<?php echo htmlspecialchars ($_SERVER['PHP_SELF']); ?>"">  
  <label for="textfield">Test</label>  
  <input type="file" name="thefile" id="thefile" />  
  <input type="hidden" name="upload" value="1" />  
  <input type="submit" value="Upload" />  
  </form>  

Er lädt was hoch (merkt man) aber nicht in den Ordner data .....Und auch sonst nirgendwo...
Kann mir jmd. helfen? Lese schon seit stunden Tuts..