I have a html form which I will be using to send quotes. One of the fields is 'packages' and for each package the user will have to enter dimensions such as height, width and length.

What I'd like to do is implement something whereby depending on the number of packages the user enters, the corresponding number of fields for height, width and length show up in my form.

I'd like to pick the simplest method for this as I don't have a great deal of time to work with the code. One possibility was to just have a textarea box where the user could enter a new line for each package, but this isn't a very good system.

Can anyone recommend a good solution to this problem, or how I can have some code whereby when the package field is updated the corresponding number of fields shows below in a matrix of some sort?

All this information will later be emailed so it would be good to have it stored in a variable or array which is easy to print out. Thanks for any help,

Thanks,