PaulS
04-03-2003, 05:09 AM
Hi,
I'm doing some ASP with client-side JavaScript instead of VBScript.
Everything's going OK apart from one set of pages where I need to be able to get at form field names and the stuff in form fields. The form is created by the user, with various fields being added when they want them (e.g. more textarea input boxes.) So I don't know what all of the fields are going to be called when they come through.
So I could receive these fields, e.g.:
text_1
text_2
image_1
text_3
image_2
I don't know how many 'image_' or 'text_' will be coming through until the form is submitted.
Is there some way I can use a loop to go through the field names that have been submitted so I can find out what's come through and can process it? I've done this in ColdFusion, but can't find out how in server-side Javascript, all the examples I've seen are for client-side stuff.
Thanks
Paul.
I'm doing some ASP with client-side JavaScript instead of VBScript.
Everything's going OK apart from one set of pages where I need to be able to get at form field names and the stuff in form fields. The form is created by the user, with various fields being added when they want them (e.g. more textarea input boxes.) So I don't know what all of the fields are going to be called when they come through.
So I could receive these fields, e.g.:
text_1
text_2
image_1
text_3
image_2
I don't know how many 'image_' or 'text_' will be coming through until the form is submitted.
Is there some way I can use a loop to go through the field names that have been submitted so I can find out what's come through and can process it? I've done this in ColdFusion, but can't find out how in server-side Javascript, all the examples I've seen are for client-side stuff.
Thanks
Paul.