mattastic
03-02-2007, 08:22 AM
Hi Folks,
I'm really stuck with this.
I need to set form variables to an array so I can loop through them to contruct my queries.
I have no PHP code at the moment as I dont know where to start.
Basically the form is quite complicated, Its a booking form for equipment.
There are time slots, main items to be booked with these time slots, and additional items for the main items. There may or may not be additional items for each main item. However I can check to see if there defined ok. Thats not my problem,
So I guess I need a 3d array?
Here are the fields to be stored. I can output them fine on my action page, but its storing them that the problem.
ITEM1_1 - Lap
SUBITEM1_1_1 - Proj
SUBITEM1_1_2 - SPK
SUBITEM1_1_TOTAL - 4 (total number of additional items available for that item)
ITEM1_2 - DVD
SUBITEM1_2_2 - SPK
SUBITEM1_2_TOTAL - 3 (total number of additional items available for that item)
ITEM2_1 - CD
ITEM2_2 - Lap
SUBITEM2_2_3 - SCR
SUBITEM2_2_TOTAL - 4 (total number of additional items available for that item)
Can anyone help?
Thankyou
I'm really stuck with this.
I need to set form variables to an array so I can loop through them to contruct my queries.
I have no PHP code at the moment as I dont know where to start.
Basically the form is quite complicated, Its a booking form for equipment.
There are time slots, main items to be booked with these time slots, and additional items for the main items. There may or may not be additional items for each main item. However I can check to see if there defined ok. Thats not my problem,
So I guess I need a 3d array?
Here are the fields to be stored. I can output them fine on my action page, but its storing them that the problem.
ITEM1_1 - Lap
SUBITEM1_1_1 - Proj
SUBITEM1_1_2 - SPK
SUBITEM1_1_TOTAL - 4 (total number of additional items available for that item)
ITEM1_2 - DVD
SUBITEM1_2_2 - SPK
SUBITEM1_2_TOTAL - 3 (total number of additional items available for that item)
ITEM2_1 - CD
ITEM2_2 - Lap
SUBITEM2_2_3 - SCR
SUBITEM2_2_TOTAL - 4 (total number of additional items available for that item)
Can anyone help?
Thankyou