Probleme mit Upload Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Probleme mit Upload Script

    Hallo,

    ich versuche mich gerade an einem Upload Script, will aber nicht ganz klappen :-(

    Also hier das Formular:

    PHP Code:
             <form action="playerinsert.php" method="post">
                <
    table>
                   <
    tr>
                      <
    td colspan ="2"><br /><input type="file" name="pic" /></td>
                   </
    tr>  
                </
    table>
     <
    p><input type="submit" value=" '.$send.' " /></p>
    </
    form
    Hier die Datei playerinsert.php:

    PHP Code:
    $test $_FILES['pic']['type'];

    print_r($test);
    echo 
    $test
    Ich bekomme leider gar keine Ausgabe, eigentlich müsste er mir doch Info über den Dateityp ausgeben oder?

  • #2
    Sorry, aber Soviel ich weiss sieht ein Form für einen Upload etwas anders aus
    Last edited by jahlives; 15-02-2008, 16:52.
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Comment


    • #3
      OK Sorry nehme alles zurück habe ich doch glatt das hier vergessen:

      enctype="multipart/form-data"

      Comment

      Working...
      X