Re: Help with PEAR:QuickForm Date
| From: | Bertrand Mansion | Date: | Fri, 12 Mar 2004 14:19:36 +0000 |
| Subject: | Re: Help with PEAR:QuickForm Date | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11260@lists.php.net to get a copy of this message | ||
<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