By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,615 Members | 1,634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,615 IT Pros & Developers. It's quick & easy.

Problems with File Uploads

P: n/a
Hello,

I've written the following sourcecode:

<form action="test.php" method="POST" enctype="multipart/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
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Wm
"Mathias Soeken" <so****@pprojekt.de> wrote in message
news:8b*************************@posting.google.co m...
Hello,

I've written the following sourcecode:

<form action="test.php" method="POST" enctype="multipart/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?


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!

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.