Re: A general UL script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Børge Holen wrote:
When I use a normal single file upload form; both of these statements will continue wether my form is empty or not, why?

if(!empty($_FILES)){
	do som checking if its a jpg.
	if not exit;

if(isset($_FILES)){


because it IS set and NOT empty.
$_FILES['file_upload_field'] is set, it's got no data, but it IS set.
$_FILES is set because $_FILES['file_upload_field'] exists.
Submitting a blank form sends all "variables" though without actual (non-default) content.

- tul

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux