How do I get a variable name to change after a loop? I need the variable "z" which equals "2" to run through the loop, but then I need the variable "zz" which equals "" to run through and so on until the loop is finished. I am using these "z" variables as hidden form elements and the loop I am running is used multiple times in the form. My problem is that "z"'s value is reassigned in every loop, so I only get one value of "z" when the user submits the form. Any ideas? Thanks.