Checking the contents of a file field
| From: | Shaun | Date: | Wed, 14 May 2003 09:52:41 +0000 |
| Subject: | Checking the contents of a file field | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147557@lists.php.net to get a copy of this message | ||
Hi,
how can i make sure that someone has selected a file to upload, the
following doesn't seem to work:
if(empty($_POST['document'])){
$error = "Please select a file";
Thanks for our help