'for' looping problem

BTW. I think you misunderstood Nick:

Can you put your code in [ code ]

He didn't mean you just put brackets around your code. Next time you go to post something, click the '#' button to see what code tags look like.