$_FILES, is there ant bug?

From: Date: Mon, 27 May 2002 17:47:26 +0000
Subject: $_FILES, is there ant bug?
Groups: php.dev 
Request: Send a blank email to php-dev+get-84498@lists.php.net to get a copy of this message
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 dfcastro@ig.com.br daniel.castro@wingstelecom.com.br _________________________________________ --- 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

« previous php.dev (#84498) next »