Menu
[code]
while (i < count){
text=’text’+i;
val=document.forms[0].elements[‘text’+i].value;
myurl += ‘&text’+i+’=’+val
i++;
}
How do I format the line “val=document.forms[0].elements[‘text’+i].value;” correctly?
I have an unknown amount of text boxes named text1, text2, text3, and so on. And all I need is the values to make a url like additem.php?text1=value1&text2=value2 and so on.
Thanks for the help.