RE: [PEAR] Quickform submission values, some get lost
| From: | Mike Carter | Date: | Tue, 06 Jan 2004 11:52:11 +0000 |
| Subject: | RE: [PEAR] Quickform submission values, some get lost | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9989@lists.php.net to get a copy of this message | ||
Hi,
> -----Original Message-----
> From: Bertrand Mansion [mailto:bmansion@mamasam.com]
>
> <mike.carter@personalmedicaladvisor.co.uk> wrote :
>
> > Hi,
> >
> > When I submit a quickform the variables posted are correct:-
> >
> > $_POST:
> > array(8) { ["conceptType"]=> string(2) "16"
> > ["recordId"]=> string(6)
> > "100401" ["eventDateGroup"]=> array(1) {
> > ["eventDate"]=> array(3) {
> > ["d"]=> string(2) "13" ["M"]=> string(2)
> > "12" ["Y"]=>
> string(4) "2003" }
> > } ["detail"]=> string(21) "Fat is where it's at!"
> > ["resultGroup"]=>
> > array(2) { ["result"]=> string(2) "16" ["uom"]=>
> > string(6)
> "100012" }
> > ["__isSensitiveGroup"]=> array(1) { ["isSensitive"]=>
> string(1) "1" }
> > ["isSensitiveGroup"]=> array(1) { ["isSensitive"]=> string(1)
> > "1" }
> > ["_qf_edit_submit"]=> string(2) "OK" }
> >
> > But when I dump the $page->controller->exportValues(); it
> doesn't have
> > everything:-
> >
> > array(5) { ["conceptType"]=> string(2) "16"
> > ["recordId"]=> string(6)
> > "100401" ["eventDateGroup"]=> array(1) {
> > ["eventDate"]=> &array(3) {
> > ["d"]=> string(2) "13" ["M"]=> string(2)
> > "12" ["Y"]=>
> string(4) "2003" }
> > } ["detail"]=> string(21) "Fat is where it's at!"
> ["isSensitiveGroup"]=>
> > array(1) { ["isSensitive"]=> string(1) "1" } }
> >
> > Why is this?
>
> ExportValues() filters what it considers not being useful so
> that you can
> use the exported values directly in a function. Consider using
> getSubmitValues() if you need everything that was submitted. This is
> documented BTW.
This is not quite what I meant (sorry for not explaining in more detail initially).
From the two dumps I posted, the 'resultGroup' and its two child elements in that group do
not get passed in to the controller session it seems. Yet others do from the same form.
The outcome is consistent so not a random bug(?) - which is why I am confused.
I understand the dropping of the '_qf_edit_submit' variables..
Regards,
Mike C.
__________________________________________________________________________________________
This message is confidential. Unless you are the named addressee or their delegated
representative you may not use, disclose, or copy the contents of the e-mail. If you
are not the named addressee please notify the sender immediately and delete the material
from your computer. Any views or opinions contained in this e-mail are solely those of
the author unless expressly stated otherwise. This email has been scanned for all viruses
by the MessageLabs Email Security System
__________________________________________________________________________________________