From: [EMAIL PROTECTED]
Operating system: Linux (hosted by PowerSurge.net)
PHP version: 4.2.3
PHP Bug Type: Scripting Engine problem
Bug description: SELECT MULTIPLE array returned by form not returning full values.
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 bug report at http://bugs.php.net/?id=20178&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20178&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20178&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20178&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20178&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20178&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20178&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20178&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20178&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20178&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20178&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20178&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20178&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20178&r=isapi