You are here: Re: Files types « All PHP « IT news, forums, messages
Re: Files types

Posted by Janwillem Borleffs on 09/19/07 20:48

Bill wrote:
> i tried
> $newname = $_FILES['imagefile']['type'];
> echo $newname;
> and got nothing.
> Is there something I have to do to make this work
>

Make sure the form has the correct method/enctype defined:

<form method="post" action="..." enctype="multipart/form-data">
<input type="file" name="imagefile" />
</form>


JW

 

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

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