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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sat Dec 14 02:01:27 2024 UTC