I need some help with using arrays in a form. I am currently creating a survey. The first page allows the user to select their skills from a list. The second page generates an array and textboxes for each skill that was selected on the first page.
For example, page 2 of user 1’s form may have $skill_1, $skill_2 and $skill_5 as arrays (with textboxes) and user 2 may have $skill_8, $skill_9 and $skill_20.
I would like to create an array that contains all of the user’s arrays when the form is submitted (i.e. $user_arrays=array($skill_1, $skill_2, $skill_5) for user 1and $user_arrays=array($skill_8, $skill_9, $skill_20) for user 2.
I have tried different ways of doing it, like creating the $user_array at the same time I create the skills arrays, but when the form is submitted the arrays are empty.
Any help would be greatly appreciated.
Luis