Re: Check the contents of a file field
| From: | andrea fastame | Date: | Tue, 06 May 2003 11:19:23 +0000 |
| Subject: | Re: Check the contents of a file field | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146505@lists.php.net to get a copy of this message | ||
Try print_r($_POST)
and see if you are using the right variable, wich I doubt it
Andrea Fastame
Shaun wrote:
"Justin French" <justin@indent.com.au> wrote in message news:BADDC7B4.262D2%justin@indent.com.au...on 06/05/03 9:06 PM, Shaun (shaun@mania.plus.com) wrote:Tried that but still no joy, here is my input field to prove I'm not being stupid here! <input name="document" type="file">if(empty($_POST[document])){ PHP says that the file field is empty even when it isnt...Try adding single quotes: if(empty($_POST['document'])){ Justin