Re: Help with PEAR:QuickForm Date

From: Date: Fri, 12 Mar 2004 14:34:08 +0000
Subject: Re: Help with PEAR:QuickForm Date
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11263@lists.php.net to get a copy of this message
That was magic! Thanks alot. From the var_dump($var) I found that my $var was: array(3) { ["d"]=> string(2) "12" ["M"]=> string(1) "3" ["Y"]=> string(4) "2004" } and therefore, to access my data I just needed to go $var[d] $var[M] $var[Y] Cheers for all the help, much appareciated. Kieran ----- Original Message ----- From: "Bertrand Mansion" <bmansion@mamasam.com> To: "Kieran Kelly" <kkelly@elipsan.com>; "Alexey Borzov" <borz_off@cs.msu.su> Cc: <pear-general@lists.php.net> Sent: Friday, March 12, 2004 2:19 PM Subject: Re: [PEAR] Help with PEAR:QuickForm Date <kkelly@elipsan.com> wrote : > Hi Again, > > I've being doing a bit of investigation and from your comments about the > format, realised that the > Day = startDate[d] > Month =startDate[M] > Year=startDate[Y] > > But when I put this into practise in the line: > $getTest = $myForm->exportValue('startDate[d]'); > echo $getTest > > I just get 'Object' printed out on screen. Due to my lack of understanding > on how the data is stored I'm unable to give exportValue the correct > parameter. Just thought I'd add this in. Use var_dump($var) when you are not sure of what a variable contains. $getTest = $myForm->exportValue('startDate'); var_dump($getTest); Magic ! Bertrand Mansion Mamasam -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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