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