Re: Re: File Field

From: Date: Sat, 03 May 2003 11:03:46 +0000
Subject: Re: Re: File Field
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-146248@lists.php.net to get a copy of this message
"Shaun" <shaun@mania.plus.com> writes: > Hi, Hi > Please could someone tell me how I can check if a file field is empty, the > following doesn't seem to work: > > if(isset($_POST[document]) == false) OK, if you have this in your HTML code : <input name="picture" type="file" value="" /> then you should use : if ( !isset( $_FILES['picture'] ) ) Hope it helps -- Pierrick LE GALL | http://www.z0rglub.com <pierrick@z0rglub.com> | http://www.phpwebgallery.net

« previous php.general (#146248) next »