CFLOOP? CFIF? Or both?

I need to make a form (bookingsForm) with the usual text fields: Name, Email, Telephone, Comment etc. Only the number off Name textfield should be flexible. I mean I have a list/menu (number) counting from 1 to 10. When a visitor choose the 5 value in the list/menu there should be 5 Name textfields in the form and when the visitor choose the 2 value in list/menu there should be 2 Name textfields etc. I can just Imagine that it has something to do with CFIF and/or CFLOOP but I can’t figure it out. Does anybody has any sugestions