php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21465 multipart/form-data forms post problems
Submitted: 2003-01-06 10:49 UTC Modified: 2003-01-06 21:57 UTC
From: yustas11051977 at yahoo dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.0 OS: Linux RedHat 7.3 (kernel 2420)
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: yustas11051977 at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-01-06 10:49 UTC] yustas11051977 at yahoo dot com
Hi,
when I use form varibles, named, as associative array (see an example) and form have attribute multipart/form-data, after posting, first element of posted array are lost, in some cases.

Example:
---------------------------------------------------------
<form name="article" method="POST" action="save_article" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000">

<input type="file" name="img[name]" value="./myfile.jpg">
<input type="hidden" name="img[koeff]" value="1.45">
<input type="hidden" name="img[min_width]" value="220">
----------------------------------------------------------

After posting printr($img) give:

Array
(
    [koeff] => 1.45
    [min_width] => 220
)

Thank you for support.
Ivaschenko Yuriy.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 21:57 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Use $_FILES & $_POST superglobals to access the data.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 11:02:27 2025 UTC