Try using radio inputs instead of checkboxes.

echo $html-
>radio('s_sexes',array('man'=>'Man','woman'=>'Woman','both'=>'Both');

On Jun 24, 4:35 pm, Allen Romero <[EMAIL PROTECTED]> wrote:
> Does anyone know how to display checkboxes in 1.2 then retrieve their
> values
>
> I tried something like
>
>  echo $form->checkbox('s_sexes',array('value'=>'Men')) . 'Men';
>  echo $form->checkbox('s_sexes',array('value'=>'Women')) . 'Women';
>
> but whent he page is submitted, if both are checked, only the second
> value is submitted to the page.
>
> Any examples appreciated.
>
> Thx.
>
> Allen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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