Best solution for a "dynamic submit form"

Best solution for a "dynamic submit form"

Hi.

I´ve just started using Jquery, and are very impressed :)

Now I have this problem and I dont know the best solution for it, so I hope you could point me in the right direction.

On a page I am working on, I have this form where users can sign up. It is a signup form for family gymnastics. When the user (a parent) submits the form the data entered in the fields are stored in a database.

The problem is, that the user shall have the option to add 'x' number of children. So when the user clicks an "add child" button/link, jquery should shows a new table underneath with name, age birthdate fields for this child. The user can add as many children as he likes (there should probably be a limit).
But when this form submits, should I then in some way iterate over all the added tables, and create a new child in the database for every new child table? And how do I iterate over a table collection in Jquery to get all fields? I cant generate unique ID´s for the fields... Or what kind of solution would fit this problem best?

I hope I have explained the problem well enough :)

Thanks alot for your help!

Kind regards,
Lars