I have a very quick question but I am having a heck of a time getting the answer...
I have a JavaScript which is called from my PHP code. IN this script I need to set a form variable on the page to a new value. I can do this with no problem. However, the form variable is different based on what the user did.
For example form objects are named xxx_1 and xxx_2, I want to pass xxx_1 or xxx_2 from PHP to JS and then have the JS set xxx_1 or xxx_2 to a new value. It seems that I can only get this to work if I explicitly call document.forms[0].xxx_1.value = x. I need this to be dynamic...
Any help???