Trying to build a dynamic form. Input Sections duplicated by user defined number

Hi

I’m about to start a project, but I’m having a hard time wrapping my head around how to code it.

Lets see if I can describe what I want to do.

I’m building a form composed of two groups.

Group one:
8 text input fields.

Group two: 7 Text fields plus 3 Radio buttons.

I need the user to enter a number between 1 - ∞.
This number needs to dynamically define how many unique instances of Group two are available to fill out and submit with the rest of the form.
(Form results need to be sent, via PHP, to my email address)

Group two is a group of text fields that are defined as the same, but the user will need to input unique information into each one.

For example, Group two has a group of questions similar (but not very close) to this:
List the People in your town
“Group two” 01
Gender:
Name:
Age:
Street Number:
Hair color:

Since I cannot determine beforehand the number of “Group two” instances the user needs to fill out I need them to choose the number above (8th text field of Group one) and have X amount of Group two to be available to fill out. Probably the best way for the user to move between Group two - 09, 11, 12 etc… is via next and previous buttons.

But despite my need for this, I can’t seem to code it.

I’d appreciate any hints and suggestions, and I’d love it if someone would point me towards some sort of working example (you don’t have to build one, I know your busy. Its just worth asking :smiley: you never know until you try)

Not only am I stuck on how to code it via Actionscript 2 I’m even more uncertain as to how the PHP script is supposed to recieve an unknown, unplannable amount of text fields/information. The way I setup my PHP scripts to sent Email from Flash is to manually input the varable names and titles inside the php file. But how do I get it to do that dynamically as well?

Something tells me I still didn’t clarify this well enough (or this post is too big to most people to bother reading through) so I’ll way a few days or a week for replies, if I don’t get anything, I’ll try again but with a visual (static/movie) example of what I’m trying to build.

Thank you for taking the time to read this.
It’s quite likely you have more pressing things to do, the fact that you read this suggests you intended to help. And thats appreciated.
Even if you were as stumped as I am :smiley: