Re: Check the contents of a file field
| From: | Shaun | Date: | Tue, 06 May 2003 10:23:57 +0000 |
| Subject: | Re: Check the contents of a file field | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146502@lists.php.net to get a copy of this message | ||
"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:
>
>
> > 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
>
Tried that but still no joy,
here is my input field to prove I'm not being stupid here!
<input name="document" type="file">