I have to create a data/entry form for and old database system where the Table contains both the Header information and Detail information. Stupid example below.
FirstName LastName Address Item Number of Items
Jane Doe 1 street shirt 5
Jane Doe 1 street Pants 2
Jane Doe 1 street socks 3
Tom Riley 5th ave shirt 10
Tom Riley 5th ave pants 1
Tom Riley 5th ave socks 1
What I would like to do is Enter just once the Firstname, Lastname, and Address and then be able to enter multiple Item, and Number of Items. On submit I could just use what was stored for firstname, lastname, and address and add it to each record of item and number of items.
But I’m not sure how to go about it. I’ve looked at collect tabular input, zinputtabluar (doesn’t work because of php 5.3), jquery where I have a + (plus sign) to add Item and Number of items.
The jquery stuff works with CFormModel but not CActiveForm but i need CActiveForm because of database.
I’m so confused and don’t know where to start. Any help would be greatly appreciated.