I have a asp file in which I create about 10 text and10 input boxes.
Basicially I created dynamically, so number of boxes are varies.

I also have a button "Save".
I have attached a javascirpt function SubmitForm().

What I try to do is the text indicates the employee number, the input box
indicates the age.
So how do save the age of each employee into database.

The missing link how to loop through the existing input boxes and the text
labels?

Re: Save values in a text boxes from a form by ThatsIT

ThatsIT
Wed Jan 24 07:32:03 CST 2007


"Alan T" <alanpltseNOSPAM@yahoo.com.au> wrote in message
news:uIk9Ad3PHHA.1756@TK2MSFTNGP05.phx.gbl...
>I have a asp file in which I create about 10 text and10 input boxes.
>Basicially I created dynamically, so number of boxes are varies.
>
> I also have a button "Save".
> I have attached a javascirpt function SubmitForm().
>
> What I try to do is the text indicates the employee number, the input box
> indicates the age.
> So how do save the age of each employee into database.
>
> The missing link how to loop through the existing input boxes and the text
> labels?

If you create them dynaicly, it would not be hard to name them in some sort
of numbered order.

such as
text1 input1
text2 input2