how would you manipulate text files over the internet in a circumstance like this one?

i have a page with check boxes and each one is assigned to a text file and based apon which boxes are checked i want to compile a new text file from them what would be the easiest way to do such a thing.

Regards,

E.P.