Forum Moderators: coopster
i have something like this:
1: <input type="file" name="info[attachment][]">
2: <input type="text" name="info[filecaption][]">
1: <input type="file" name="info[attachment][]">
2: <input type="text" name="info[filecaption][]">
how do i foreach it so when POSTED attachment and filecaption are in the same array?
echo '<pre>';
print_r($_POST);
echo '</pre>';
I can then actually look at the array and data to see how it is structured. I make an attempt on the same page to loop it, then look at the data and my loop results to see how I screwed it up. ;)
see if that helps you see the pattern.