$num = 10; //numero de inputs a mostrar for($i=0;$i<=$num;$i++) { echo '<input type="text" name="c'.$i.'">'; }