I'm having a similar problem as you two and I found this thread after
a quick search:
http://groups.google.de/group/cake-php/browse_thread/thread/58c30b3c249dca19/501031b9492346ee?lnk=gst&q=validation+message#501031b9492346ee
It says you should use $form->input with type=select instead of the
$fo
Don't use $form->select, use $form->input with type=select:
echo $form->input('answer', array('type' => 'select', 'options' =>
array('0'=>'No', '1' => 'Yes')));
On Oct 20, 4:35 pm, clrockwell <[EMAIL PROTECTED]> wrote:
> Thank you David, I was hoping to avoid that and simply thought I was
> doin
Thank you David, I was hoping to avoid that and simply thought I was
doing something wrong. Thanks!
On Oct 19, 10:27 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> If you use $form->input(), it will create everything for an input
> field, including label and error messages.
> If you use
If you use $form->input(), it will create everything for an input
field, including label and error messages.
If you use the more specialized select() you'll have to create labels
and error messages yourself. See FormHelper::error().
http://api.cakephp.org/class_form_helper.html
On 20 Oct 20
I'm using 1.2 and this is driving me crazy. I have a form with
several fields that use validation. When I submit an empty form for
testing all fields *except* the select have the appropriate html
generated and the error message is displayed.
The html for the select box begins with:
Occupation*