Click to See Complete Forum and Search --> : text feilds


Genady
07-27-2003, 03:49 PM
Hi there,
I would like to create HTML page which contain some amount of the text fields. Is it possible to create them such way that all of them would be part of the array. So, for example, if I need to read value of the feilds I just have to go through the loop & read the value one by one.

Regards,

Khalid Ali
07-27-2003, 04:04 PM
all form elements acts like arrays..if you name them same you can access them just like array....

Genady
07-27-2003, 04:09 PM
Hi,
tnx for reply. I just would like to verify that I understood you correcly. For example:
<FORM NAME=MyForm>
<INPUT id=text3 name=text>
<INPUT id=text4 name=text>
<INPUT id=text2 name=text>
<INPUT id=text1 name=text>
</FORM>
will it be correct?

Regards,

Genady
07-27-2003, 04:46 PM
Hi Khalid,
thanks for the help. The same ID - & I got what I want.

Regards,
:D

Khalid Ali
07-27-2003, 05:10 PM
you are welcome...