question concerning hierselect

From: Date: Wed, 06 Dec 2006 20:08:51 +0000
Subject: question concerning hierselect
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25989@lists.php.net to get a copy of this message
I have a 3-level hierselect element. Obviously, the first select element is used only in determining what the second select contains, and the second select element is used only in determining what the third select contains. What I want to do is assign a certain numerical value to the elements in the third select, and then populate a text box with that value. For example 1st Select: list of Productions 2nd Select: list of job types for that production 3rd Select: list of jobs of that job type in that production. I want each job to have an associated integer value that will be in a text box. Right now I have 3 arrays: $ary_production, $ary_job_type, and $ary_job, the first being one-dimensional, the second two-dimensional, and the third three-dimensional. These are used to create a hierselect element $obj_hdd_job = &$obj_points_form->addElement('hierselect', 'ddlJob', 'Select Job', '', '<br />'); $obj_hdd_job->setOptions(array($ary_production, $ary_job_type, $ary_job)); Any help would be greatly appreciated! Tim

« previous php.pear.general (#25989) next »