kennygadams
Programmer
Is there any way to use a variable in the Field Name area to get the value from the document?
I can get it to work if i use the actual field name of the form but not when I put the field name into a variable.
I can get it to work if i use the actual field name of the form but not when I put the field name into a variable.
Code:
var counter;
counter++;
var fieldName = "";
fieldName = "caption_" + counter;
alert(document.write_to_database_form.fieldName.value);