Before we get to your problem... may I first ask why you're trying to generate radio buttons with unique names? The point of using radio boxes is to give a group of them (e.g. 2 or more) the same name, and letting the user choose only one option from that group.
If you want to allow the user to select one or more of the options without restriction, then you should probably be using a checkbox instead.
EDIT: Also, forgot to mention...
Welcome to PHPBuilder! When posting PHP, please use the board's [noparse]
...
[/noparse] bbcode tags (versus the generic CODE tags) as they make your code much easier to read and analyze.