Re: Quickform::hierselect_accessing values

From: Date: Sun, 15 Aug 2004 11:43:45 +0000
Subject: Re: Quickform::hierselect_accessing values
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14121@lists.php.net to get a copy of this message
Hi, Michael wrote:
Could you tell me what "getValue" actually returns. I looked at the pear docs but this section is undocumented as yet. All i am trying to is get a value from the final(3rd) select box so i can forward that value to an action for a db lookup.
It returns the "display" value of the element, this it not necessarily the submitted value (I suspect you try to access the values of the form that was not yet submitted). In your case it would be an array of 3 elements, corresponding to the selects in the form.
I have a 3 tier hierselect form. I store the three arrays in $ethicalSel which i then pass onto hierselect as $sel->setOptions($request->getAttribute('ethicalsel')); I am using
"mojavi"
thus the "$request->getAttribute('ethicalsel')". What i would like to
know
is how i get access to values selected. I attempted via
getSubmitValues()
but to no avail. Would appreciate any help or guidance.
$sel->getValue();


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