Ive switched to using textarea and explode() and that is a lot nicer.
Will explode(" ", array) take care of tabs, spaces, new lines, etc...?

How would i go about printing, or debugging the input from $form-
>textarea().  Or just printing out what my explode returns.  Sorry for
the basic question i still havent learned to debug in cake



On May 27, 9:12 am, [email protected] wrote:
> Try to debug in your controller and post here what is displayed
>
> Kind Regards,
>
> Kevinhttp://codingexplorer.blogspot.com
> PIN   : 21AD562F
> MSN : [email protected]
> YM    : yosef.kevin
> Gtalk: yosef.kevin
>
>
>
> -----Original Message-----
> From: euromark <[email protected]>
>
> Sender: [email protected]
> Date: Fri, 27 May 2011 08:01:16
> To: CakePHP<[email protected]>
> Reply-To: [email protected]
> Subject: Re: Creating an input list and parsing it
>
> the type should not be changed, either use input or textarea
> after posting it you can process the string and explode() it into
> pieces
> then you can iterate over this result array and save all records
>
> On 26 Mai, 23:41, Schemer <[email protected]> wrote:
> > I am trying create an input field, where the user would type a list of
> > names.  The inputs are eventually supposed to be parsed and saved into
> > a data table.
>
> > Im having a couple of problems.
> > First im not sure if im creating the input field correctly. In the
> > view i have
>
> > echo $form->input('field',array('type'=>'array'));
>
> > If that works im stuck on how to go about parsing the input names. In
> > the controller add() function i have a loop which basically traverses
> > my 'field'.
> > I get the input like this --
>
> > $values = $this->data['Subject']['field'];      --- and i guess im
> > assuming this returns me a list of the input
>
> --
> Our newest site for the community: CakePHP Video 
> Tutorialshttp://tv.cakephp.org
> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others 
> with their CakePHP related questions.
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group 
> athttp://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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to