|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: nate at visionsacademy dot org
New email:
PHP Version: OS:


 [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-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 17:01:29 2023 UTC