how do i pass control(text field) values from one html to other using hidden variables




var count=document.getElementsByName("partId");
for(var i=0;i<count.length;i++)
{


document.mylist.myNum[i].value= document.getElementsByName("partNum")
(i).value;



}


document.forms["mylist"].submit();
}
myNum[] is a hidden variable and partNum is the name of a text field
that has many instances i mean there are many textfields with the
same
name so it forms a column in a data table.

.