I am trying to look through some input fields in a form and add them to a database. The user sets the number of fields, so I can\'t do something like the code below because
you can assign input names like he following(using javascript) and create a hidden field that contains the number of field, so when the user add more input fields, the hidden field is updated dynamically.
so when you post this you know how many fields you have.