Reply to Re: Help please with $_FILES

Your name:

Reply:


Posted by Shelly on 10/15/60 11:20

"Daniel Tryba" <partmapsswen@invalid.tryba.nl> wrote in message
news:42c87db7$0$74303$c5fe704e@news6.xs4all.nl...
> Shelly <sheldonlg.news@asap-consult.com> wrote:
> [file uploading code]
>> There are two problems.
>> 1 - It doesn't enter to do the copy even though the file is a .mid file.
>> 2 - The $_FILES['filename'] is empty.
>>
>> I run the "browse" button and select that a file. Why is the $_FILES
>> superglobal empty?
>>
>> Can someone please help me? (I have only been at this for a short
>> while).
>
> A clear case of RTFM. Seeing your code I don't know where you got it
> from, but it's definetly not from
> http://www.php.net/manual/en/features.file-upload.php
> which you should try first.
>
> While your posted code is not complete I can only guess you didn't
> supply the correct encoding type to the form necessary for uploading:
> enctype="multipart/form-data"\

Here is the complete section and it still doesn't work:

<p>
<label></label>
<br>
<label> </label>
</p>
<form enctype="multipart/form-data" action="thisform.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
<p>File name: <input name="filename" type="file" id="filename">
</p>
<p>Description: <input name="description" type="text"
id="description">
<label> </label>
</p>
<p>
<label> </label>
<input name="submit" type="submit" value="Add Entry">
</p>
</form>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация