From: [EMAIL PROTECTED] Operating system: Linux(RedHat7.2/kernel2.4.7-10) PHP version: 4.2.3 PHP Bug Type: Arrays related Bug description: each array elements value loss first 4 charactors.
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 bug report at http://bugs.php.net/?id=19554&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19554&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19554&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19554&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19554&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19554&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19554&r=support Expected behavior: http://bugs.php.net/fix.php?id=19554&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19554&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19554&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19554&r=globals