I am using HTML forms to post values from the data entry page. When they arrive on the second page - I have to extract them from the POST array. This is fine, but I now have to merge them somehow - although a simple array_merge is not what I mean - I need to be able to
When I use print_r to view the POSTed data (within the Post Array), I see:
I would need to use some sort of merging function in order to output the following:[namesUnem] => Array
(
[0] => Brian
[1] => Richard
[2] => Sarah
)
[commentsUnem] => Array
(
[0] => Brian Comments here
[1] => Richard Comments should be entered here
[2] => Sarah's Comments were also entered here
)
In English, I need to marry each element in separate arrays so that they form a record - element 1 from array 1 with element 1 from array 2, element 2 from array 1 with element 2 from array 2,array(
[Name] => Brian [Comment] => Brian Comments here
[Name] => Richard [Comment] => Richard Comments should be entered here
[Name] => Sarah [Comment] => Sarah's Comments were also entered here
)
Any help greatly appreciated
AikenD