Re: QuickForm and date type

From: Date: Fri, 21 Mar 2003 00:58:11 +0000
Subject: Re: QuickForm and date type
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4349@lists.php.net to get a copy of this message
Can anyone explain to me how to use get the date into a variable once the form has been submitted? All the data from the other fields I can get by using: $form->getSubmitValue("fieldname"); But when I try this with my date name, and I echo this, I just get: Array Printed. If I use $form->process(); I get this output: ["pubdate"]=> array(3) {
    ["m"]=>
    string(1) "1"
    ["d"]=>
    string(1) "1"
    ["Y"]=>
    string(4) "2003"
} I want to store the date in U timestamp, but not sure how to get the data. Thanks Charles On Thursday, March 20, 2003, at 01:42 PM, Charles Kline wrote:
Cool. Just in case anyone else was interested: $form->addElement('date', 'dateTest1', 'Date1:', array('format'=>'dmY', 'minYear'=>2000, 'maxYear'=>2004)); On Thursday, March 20, 2003, at 01:38 PM, Charles Kline wrote:
Thanks. I did look, must have missed it... better look harder :) On Thursday, March 20, 2003, at 01:36 PM, Bertrand Mansion wrote:
<ckline@rightcode.net> wrote :
Hi all, Is there a way to tell QuickForm to start the year field at 2003 when you create a date type item in my quickform? thanks, charles
I think there is an example in the examples. Something like maxyear... Cheers, Bertrand Mansion Mamasam
-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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