| Trusted Advisor with 7,024 posts. | | Join Date: May 2006 Location: S.F. Bay Area, CA Experience: Intermediate | |
In your script, when you send back the page with the list of form fields, also send back a hidden form field that contains the number of fields that were generated. Then, when the user submits the form with the generated form fields on it, the number of generated fields is sent back also.
The hidden form field would look like this: Code: <input type="hidden" value="{number of generated fields}" name="generatedFieldCount" /> Then, when the form is sent back (with the generated fields filled in), you can get the number of generated fields by getting the value of the "generatedFieldCount" form field and use that to control a for loop to process the fields.
Peace... |