uNConVeNtiOnAL said:
Why doesn't this work - no errors, just no value when text is in textbox
var fn=document.forms[0].elements[7].value;
You haven't shown us enough information.
That line will work, if there is a value in a textbox
which is found at document.forms[0].elements[7].value
One common error would be to confuse elements[7] with
the seventh element. It is actually the eighth.
This demonstrates only one of many reason why it's
usually better to identify elements by name or id,
rather than number.