Hail,

If I have 3 text boxes with the same name that I put in an array:

<input name='txtInput[]' size='5'>
<input name='txtInput[]' size='5'>
<input name='txtInput[]' size='5'>

How can I in a vbscript refer to #2 for example? I thought I could say something like:

<SCRIPT LANGUAGE="VBScript">
<!--
Sub B1_OnClick
msgbox txtInput(2).value
End Sub
-->
</SCRIPT>

But it doesn't work, this might be fairly obvious, can someone help me out?