Friday, June 29, 2012

Re: cant access multiple textboxes values

debug($this->data)

Or debug($this->request->data) if using 2.x.

On Thu, Jun 28, 2012 at 8:52 AM, Ditshwanelo <truthmaleka@mailbox.co.za> wrote:
> Im using multiple textboxes with the same name want to get values from the
> form i knw in PHP we use get bt i tried cake is not working,please help
> This is my textbox:<input type="text" name="description[]" id="description"
> />
>                               <input type="text" name="description[]"
> id="description" />
>                                <input type="text" name="description[]"
> id="description" />
> ,how do i access this in my controller using $this->data[Mymodel][Name] and
> get each textbox vale according its index
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: