Hi everyone,

I am having a strange problem where what is selected in the date field
does not actually arrive on the next page.

I have the following code for the date fields in my view:

<?php
        e($form->input('Search.date_from', array('type'=>'date', 'dateFormat'
=> 'YMD', 'label' => __('lb_date_from',true), 'class' =>'text',
'selected'=>'2000-01-01', 'separator'=>' ')));
        e($form->input('Search.date_to', array('type'=>'date', 'dateFormat'
=> 'YMD', 'label' => __('lb_date_to',true), 'class'
=>'text','selected'=>'2020-12-31', 'separator'=>' ')));
?>

and what ends up in $this->params in the controller is
Array
(
    [url] => search/searchcontents/
    [value] =>
    [title] => 1
    [description] => 1
    [author] => 1
    [keywords] => 1
    [content] => 1
    [date_from] => 01
    [date_to] => 31
    [language] => 0
)


Why do I get only one of the three date fields?

I am using Cake 1.2.0.7296 RC2

I hope someone can help, this is driving me nuts but I bet its very
simple.

Thanks in advance


--~--~---------~--~----~------------~-------~--~----~
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