#20178 [Opn->Csd]: SELECT MULTIPLE array returned by form not returning full values.
| From: | moriyoshi@php.net | Date: | Thu, 31 Oct 2002 00:09:21 +0000 |
| Subject: | #20178 [Opn->Csd]: SELECT MULTIPLE array returned by form not returning full values. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23750@lists.php.net to get a copy of this message | ||
ID: 20178
Updated by: moriyoshi@php.net
Reported By: nate@visionsacademy.org
-Status: Open
+Status: Closed
-Bug Type: Scripting Engine problem
+Bug Type: mbstring related
Operating System: Linux (hosted by PowerSurge.net)
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.
Also try --disable-mbstr-enc-trans if you even want to use 4.2.3.
Previous Comments:
------------------------------------------------------------------------
[2002-10-30 15:50:55] nate@visionsacademy.org
Recently we migrated an online learning tool from Crazyhosting.net (PHP
4.04 W/ Zend Optimizer) to Powersurge.net (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>Academics
<option>Math
<option>Problem Solving
<option>Project Management
<option>Public Speaking
<option>Reading for Comprehension
<option>Technology
<option>Writing
</select>
[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...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20178&edit=1