I'd really recommend listening to the first response you got, from
Ketan Patel. Once you've submitted, in your Controller, have a look at
what form the data you've been sent is in, and then prepare it as you
require to send to the model to be saved.

You will find people here are very happy to help, but helping someone
does not mean doing it for them. You have to be seen to be making the
effort yourself and following the good advice people generously offer.
If you try it and have difficulties you can't overcome, come back and
explain that you what you did and what happened, and 9 times out of 10
the originial person who helped you with the first step will help you
with the second... soon you'll be walking on your own! But don't just
sit there and expect people to carry you... you'll be sitting there a
long time.

--

On Aug 17, 10:45 am, nirmal <[EMAIL PROTECTED]> wrote:
> please tell me how can i send checkbox values from template to
> controller.
> template: (its related to site model)
> <?php echo $html->hidden('Site/id', array('value' => $site['Site']
> ['id']));?>
> (from this line i am geeting site id)
>
>  <?php echo $html->hidden('Campaign/id', array('value' =>$campaign[]
> []));?>
> (from this line i want to get campaign id, but i am not able to get it
> because it is related to campaign model)
>
> <?php echo $html->submit('Deny All') ?>
>
> thank you,
>
> --
> Nirmal
>
> On Aug 16, 9:27 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > On 8/16/07, bbuchs <[EMAIL PROTECTED]> wrote:
>
> > > Jerk.
>
> > Well, there are three potential "jerks"
>
> > 1) the original poster for expecting people to simply provide them with code
> > 2) the responder who told them to go read the manual
> > 3) the person who called the responder in #2 a "jerk"
>
> > Personally, I would've responded:
>
> > "Sounds like you need to use some Ajax functionality toupdateall 
> > checkboxes."
>
> > However, when the request sounds like "please write some code for me
> > because I need it for work / school and don't want to do it myself" I
> > understand why people get annoyed.
>
> > --
> > Chris Hartjes
> > Senior Developer
> > Cake Development Corporation
>
> > My motto for 2007:  "Just build it, damnit!"
>
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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