|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20178 SELECT MULTIPLE array returned by form not returning full values.
Submitted: 2002-10-30 15:50 UTC Modified: 2002-10-30 18:09 UTC
From: nate at visionsacademy dot org Assigned:
Status: Closed Package: mbstring related
PHP Version: 4.2.3 OS: Linux (hosted by
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 + 2 = ?
Subscribe to this entry?

 [2002-10-30 15:50 UTC] nate at visionsacademy dot org
Recently we migrated an online learning tool from (PHP 4.04 W/ Zend Optimizer) to (PHP 4.2.3) and the arrays returned by multi-selects in the forms appear to not be returning full values.

[html page]
<select name="skill_sets[]" multiple size=8>
<option>Problem Solving
<option>Project Management
<option>Public Speaking
<option>Reading for Comprehension
[end of html page]

[php page to check values]

//get the values for skill sets from the form
$test = $_POST['skill_sets'];

//This should say 'Array'
echo "Skill sets posted as: ".$test;

//step through the skill sets, echoing each one.
for ($a = 0; $a < count($test); $a++ ) {

	echo "<li>".$test[$a];

[end of php page]

[output with all selected]
Skill sets posted as: Array
* emics
* lem Solving
* ect Management
* ic Speaking
* ing for Comprehension
* nology
* ing
[end of output]

Everything was working fine on 4.04...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-30 18:09 UTC]
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
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

Also try --disable-mbstr-enc-trans if you even want to use 4.2.3.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Nov 26 19:05:53 2022 UTC