Create three normal checkboxes with name="data[my_action]" and make
sure one of them defaults to checked

THen in your action it is as simple as

function action_name() {
  if (!empty($this->data) && isset($this->data['my_action'])) {
    switch ($this->data['my_action']) {
      case "one":
        // you get the point :) The rest is normal php
    }
  }
}

Geoff
--
http://lemoncake.wordpress.com

On Jul 17, 8:47 am, Laburno <[EMAIL PROTECTED]> wrote:
> Hi,
> i'm a total newbie to Cakephph, so please don't be rude :).
> I'm trying to make a form with a radio button with 3 values (the radio
> is not linked to any database attribute).
> Depending on the value selected, the controller function invoked will
> perform different tasks... the mess is that i don't know how to check
> the value of the radio and write the right conditions for the ifs.
>
> How can i implement this?
>
> Thank you


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