why are you naming all the inputs the same? you could just give them all a different name, this makes it a little easier. that way you can place them in an array and then loop over them, just as you do with the attach fields.
i have no idea why this is giving errors. you could try this, but i don't know if it's gonna work:
Greetz,
UnrealEd