#19554 [Opn->Csd]: each array elements value loss first 4 charactors.
| From: | derick@php.net | Date: | Mon, 23 Sep 2002 05:56:26 +0000 |
| Subject: | #19554 [Opn->Csd]: each array elements value loss first 4 charactors. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20073@lists.php.net to get a copy of this message | ||
ID: 19554
Updated by: derick@php.net
Reported By: fujsiaki@tkk.att.ne.jp
-Status: Open
+Status: Closed
Bug Type: Arrays related
Operating System: Linux(RedHat7.2/kernel2.4.7-10)
PHP Version: 4.2.3
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
For now you can recompile without --enable-mbstr-enc-trans
Previous Comments:
------------------------------------------------------------------------
[2002-09-22 21:31:39] fujsiaki@tkk.att.ne.jp
Hi!
I use <SELECT> tag with "array" <OPTION> tag.
But it drop 4 charactor each array elements.
This fact is not happen on version 4.1.2.
Code is follow:
-----------------------------------
<HTML>
<HEAD>
<TITLE>List Box Sample</TITLE>
<meata http-equiv="Content-Type" Content="text/html; charset=EUC-JP">
</HEAD>
<BODY>
<FORM ACTION="<?php print $PHP_SELF; ?>" METHOD="POST">
<SELECT NAME="listbox[]" MULTIPLE>
<OPTION value="000000">me</OPTION>
<OPTION value="111111">you</OPTION>
<OPTION value="222222">we</OPTION>
<OPTION value="333333">them</OPTION>
</SELECT>
<INPUT TYPE="SUBMIT" NAME="cmd" value="Send">
</FORM>
<PRE>
<?php
if (isset($_POST["listbox"])) {
foreach($_POST["listbox"] as $val) {
print "Your select is " . $val . "<br>";
}
}
?>
</PRE>
</BODY>
</HTML>
-----------------------------------
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19554&edit=1