Hi all,
i'm just enjoiying with HTA and i'm trying to create a "dynamic" form
to enter data.
I mean, i create a form with 1 text field (name text[])
then with JS i dinamically add more text fields (named always text[])

With php i could access che post (or get) array text with all the
fields inside.
Can i do the same with VBscript in the HTA?

i can access the value of a single text field named text1 for example,
but i can't get dinamically the value of each field called text[]

why?

thanks!

Re: VBscript and HTML Forms by noone

noone
Wed Mar 12 18:14:32 CDT 2008

giorno Tue, 11 Mar 2008 04:53:42 -0700 (PDT), Massi <pattagghiu@gmail.com> ha scritto:

>Hi all,
>i'm just enjoiying with HTA and i'm trying to create a "dynamic" form
>to enter data.
>I mean, i create a form with 1 text field (name text[])
>then with JS i dinamically add more text fields (named always text[])
>
>With php i could access che post (or get) array text with all the
>fields inside.
>Can i do the same with VBscript in the HTA?
>
>i can access the value of a single text field named text1 for example,
>but i can't get dinamically the value of each field called text[]
I think you can add dynamically text fields using a div section and changing its innerhtml
property.

you can access the fields with window.elements, but I never tried.
Or with eval method: a=eval("text"&trim(n)&".value")

--
Giovanni Cenati (Bergamo, Italy)
Write to user "Reventlov" and domain at katamail com
http://digilander.libero.it/Cenati (Esempi e programmi in VbScript)
--