tags:

views:

80

answers:

0

I made something like an array of Input boxes in a html file, in this way, it is easy to write just one javascript function for all of them (see below):

<form name="myform">
  <input type="text" name="t" onkeydown="return a(0)">
  <input type="text" name="t" onkeydown="return a(1)">
  <input type="text" name="t" onkeydown="return a(2)">
</form>


function a(No)
        {
            if (document.myform.t[No].value=="...")
                 ...
            return true;
        }

now, if I want to pass the value of those input boxes to another Html or cgi file, what should I do? I mean something like this:

<a href="cgi-test.cgi?T1=t[0]">an Image or text</a>

the mentioned code (t[0]) does not work. do you know what should I write after "?"?

Thank you very much.