Problems with File Uploads

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mathias Soeken

    Problems with File Uploads

    Hello,

    I've written the following sourcecode:

    <form action="test.ph p" method="POST" enctype="multip art/form-data">
    <input type="file" name="datei">
    <input type="submit">
    </form>

    // test.php
    <?
    echo $datei_name; // No output.
    echo $_FILES['datei']['name']; // No output.
    ?>

    Can anybody help me?

    Mathias Soeken
  • Wm

    #2
    Re: Problems with File Uploads

    "Mathias Soeken" <soeken@pprojek t.de> wrote in message
    news:8bb5359.03 08100745.722d7d 86@posting.goog le.com...[color=blue]
    > Hello,
    >
    > I've written the following sourcecode:
    >
    > <form action="test.ph p" method="POST" enctype="multip art/form-data">
    > <input type="file" name="datei">
    > <input type="submit">
    > </form>
    >
    > // test.php
    > <?
    > echo $datei_name; // No output.
    > echo $_FILES['datei']['name']; // No output.
    > ?>
    >
    > Can anybody help me?
    >[/color]

    Did you do an extract($_POST) ? Otherwise you'll probably need echo
    "$_POST['datei']". You're echoing $datei_name but I don't see that variable
    anywhere.

    Wm
    DISCLAIMER: I'm a newbie, so my input is just a guess!



    Comment

    Working...