Re: Quickform submission values, some get lost

From: Date: Tue, 06 Jan 2004 11:45:03 +0000
Subject: Re: Quickform submission values, some get lost
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9986@lists.php.net to get a copy of this message
<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. Bertrand Mansion Mamasam

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