|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-30 18:09 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 22:00:02 2025 UTC |
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...