#21465 [Opn->Bgs]: multipart/form-data forms post problems
| From: | iliaa@php.net | Date: | Tue, 07 Jan 2003 03:57:30 +0000 |
| Subject: | #21465 [Opn->Bgs]: multipart/form-data forms post problems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29267@lists.php.net to get a copy of this message | ||
ID: 21465
Updated by: iliaa@php.net
Reported By: yustas11051977@yahoo.com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Linux RedHat 7.3 (kernel 2420)
PHP Version: 4.3.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2003-01-06 10:49:37] yustas11051977@yahoo.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21465&edit=1