php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #534 Arrays as file upload names
Submitted: 1998-07-10 04:52 UTC Modified: 1999-06-12 16:34 UTC
From: sparky at hypereality dot co dot uk Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0 Latest CVS OS: Linux RH4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sparky at hypereality dot co dot uk
New email:
PHP Version: OS:

 

 [1998-07-10 04:52 UTC] sparky at hypereality dot co dot uk
There seems to be a problem with using an array as a file upload name:

<?php
echo $foo[bar];
?>
<FORM ACTION="<?php echo $PHP_SELF; ?>" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="FILE" NAME="foo[bar]">
<INPUT TYPE="submit">
</FORM>

Doesn't work - this would be very useful since I need to pass either foo[$VAR] or $(foo_$VAR)
so that I can differentiate and neither seem possible.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-12 16:34 UTC] jim at cvs dot php dot net
Fixed in CVS, will be in 3.0.10.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC