Re: form select/javascript

2009-04-01 Thread kurious oranj

Hi,

I've got this working thanks, and also put a "null" value at the
start.

How do I find out the value that's been selected in PHP and also, I
use isset() on the input fields, how do I check if the dropdown value
is null?

On Mar 31, 8:13 pm, mscdex  wrote:
> On Mar 31, 12:18 pm, Kalt  wrote:
>
> > echo $form->dateTime(
> >         'fieldname',
> >         'DMY',
> >         'NONE',
> >         null,
> >         array(
> >                 'minYear' => 1983,
> >                 'maxYear' => date('Y')
> >         ),
> >         false
> > )
>
> You can also do:
>
> echo $form->year('Model.fieldname', 1983, date("Y"), null, array(),
> false);

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



form select/javascript

2009-03-31 Thread kurious oranj

Hi,

I'm quite new to CakePHP and need to have a SELECT with options for
each year from 1983 to the current year. I can certainly write the
javascript to do the loop from 1983 to current year, but what's the
best way to call that javascript to populate the SELECT? I just need
the general mechanism.

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---