for ($i = 1; $i <= 10; $i++) {
print ("<input type='text' name='textinput'".$i.">");
}
would output 10 text inputs with names like
textinput1
textinput2
textinput3
etc...
alternatively you could use an array
for ($i = 1; $i <= 10; $i++) {
print ("<input type='text' name='textinput['".$i."]>");
}
then you have names like so:
textinput[1]
textinput[2]
textinput[3]
etc...