You are here: Re: [PHP] Can I use $_REQUEST for file uploads? « PHP « IT news, forums, messages
Re: [PHP] Can I use $_REQUEST for file uploads?

Posted by Richard Lynch on 04/22/05 12:13

On Thu, April 21, 2005 12:48 pm, Srinadh Sannidhanam said:
> Hi
> When I use $_REQUEST for accessing files uploaded, it is working
> fine in PHP PHP 4.3.10.
> But it is not working in PHP 4.3.4.
> $_FILES working in both the versions. Can I use $_REQUEST in PHP
> 4.3.10 also? Do I need to change any configuration in php.ini?
> server is Apache/2.0.49
> Please help me in this regard.

When $_REQUEST doesn't seem to work with file uploads, it almost always,
in my experience, means I forgot the ENCTYPE="multipart/form-data" on the
FORM tag.

D'oh!

I did that several times, over the years, before it became a habit to type
it for file uploads.

YMMV

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this 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

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