note 33416 added to features.file-upload

From: Date: Wed, 25 Jun 2003 12:03:19 +0000
Subject: note 33416 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-50984@lists.php.net to get a copy of this message
When you're using this type of form: <form name="" method="post" action="dostuff.php" enctype="multipart/form-data" > <input type="file" name="dat[foto]" /> <input type="file" name="dat[banner]" /> <input type="file" name="dat[pdf]" /> </form> The ( var_dump'ed ) $_FILES array will come out threedimensional like this: array(1) { ["dat"]=> array(5) { ["name"]=> array(3) { ["foto"]=> string(0) "" ["banner"]=> string(0) "" ["pdf"]=> string(0) "" } ["type"]=> array(3) { ["foto"]=> string(0) "" ["banner"]=> string(0) "" ["pdf"]=> string(0) "" } ["tmp_name"]=> array(3) { ["foto"]=> string(0) "" ["banner"]=> string(0) "" ["pdf"]=> string(0) "" } ["error"]=> array(3) { ["foto"]=> int(4) ["banner"]=> int(4) ["pdf"]=> int(4) } ["size"]=> array(3) { ["foto"]=> int(0) ["banner"]=> int(0) ["pdf"]=> int(0) } } } ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33416 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33416&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33416&report=yes

« previous php.notes (#50984) next »