Which version of PHP are you running? Versions before 4.1.0 don't have 
the $_* variables. $_FILES may be an exception, it might be only 
available in 4.2.0 and later, but I'm not sure about that.

Sander

On 2002.05.27 19:47 Daniel CAstro wrote:
> My code is much more extense than this, but I guess this is the source
> of my
> problem.
> "arquivo" is a member of a form, it is a file type, declared like
> <input
> type="file" name="arquivo">...
> I need to know if there is a file selected or not, that is the reason
> of the
> bug.
> When I run this code, through the form it does not print anything,
> even when
> I choose a file on the previous html (html with a form, with an action
> calling this script...)  My version of PHP is 4.x
> <?php
>  $nome     = $_POST['nome'];
>  $des     = $_POST['des'];
>  $eng     = $_POST['eng'];
>  $id      = $_POST['id'];
>  $tabela    = $_POST['tabela'];
>  $tabela_nova  = $_POST['dd_tipo'];
>  $arquivo      = $_FILES['arquivo']['name'];
>  //Conexao com BD...
>  printf("%s",$arquivo);
> ?>
> 
> Why it is happenig???
> _________________________________________
> Daniel Castro ICQ#: 12919017
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> _________________________________________
> 
> 
> ---
> O email enviado não tem Vírus
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.365 / Virus Database: 202 - Release Date: 24/5/2002
> 
> 
> 
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to