Hey,

yeah I thought of that but this would acutally do the following:
instead of selecting an hour and the minute, it would populate my
select with values like this:

09:00
09:15
09:30
...
I guess that would be ok even if I had many many options in my array.
BTW could you give me a hint how to build these list arrays? I'd take
the NAME instead of the VALUE for my actions, but I need to know how
to populate my array with a foreach-loop.
I have only the start-time and the end time, for example 09:00 and
12:00 and I want to populate my array in 15 minute steps...

It seems to me that it's always kinda hard when dealing with time-
related data... :(

On 1 Jun., 14:56, Rick <[email protected]> wrote:
> You should be able to create an array (from a find('list'...)) pass
> that to your form and show it as the select's 'options'.
>
> Rick,
>
> On May 30, 8:47 pm, DigitalDude <[email protected]> wrote:
>
> > Hey,
>
> > I'm looking for a way to populate a time field (input, select) with
> > data I fetched from the database. This means, I have a specific time
> > period and I want to display only the times that are included in this
> > period (e.g. 08:00 - 16:00). This way, the user should chose times
> > like 12:15, 09:45, 14:30 and so on...
>
> > Is there ANY way to do this in Cake? I hope there is one, after this
> > I'll have to deal with putting these options via jQuery into the input
> > select and this won't be fun i guess...
>
> > Greetings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to