Quickform Date element time range.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Aloha All,

I was wondering how I could set a time range using the date element. What I
need is a way to limit the time fields to reflect the times available. So if
the range is 7 am to 4 pm I would like the hours menu to only contain
7,8,9,10,11,12,1,2,3,4. Any time selected before 12 would be am and after 12
would be pm, it would be great if the am and pm could be set via javascript.


Here's my time element:
$contact->addElement ( 'date' , 'Times1' , 'Tee Time First Choice' ,
array('format' => 'g i A','optionIncrement' => array('i' => 10)));



Any suggestions?
Thanks,
Gary

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux