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 <msc...@gmail.com> wrote:
> On Mar 31, 12:18 pm, Kalt <pierre.fring...@gmail.com> 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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment