Tuesday, June 24, 2014

Writing array from dynamically generated Select boxes to database.

I don't quite know what this is called, so I'm having trouble finding a working example. This is what I want:
  1. A select/pulldown menu that pulls data from the database.
  2. An "add" button that creates a new menu that is a clone of the original
  3. For this to write to the database. So if I have the 3 selects, I get 3 new rows in the table.
Here is what I have:
  1. A select/pulldown menu that pulls data from the database.
  2. An "add" button that creates a new menu that is a clone of the original
  3. JS script that will change the name so that it will create nested arrays of the selections.
  4. The ability to write one pulldown, but only one.
  5. Cake 2.something.
Is what I want possible with Cake? I know it is possible with straight PHP, I've done it before. However, I can't get cake to write multiple values to the database. I have no idea where to even begin with this. There's nothing in the book, and I can't find someone who has done something similar.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: