Alex,
find enclosed an ASP page .
The variable Name1 is got in the Window_Onload event.

I just cant figure out how to get Name1 into the code for sending the textbox text back to the server.

It doesnt seem to be recognised outside the window_onload event.

My plan was to put Name1 into the text box text and make the textbox invisible , and hitting the sub-mit button should display page 2 with database info.

Can you have a look at the page enclosed . if you can figure out any way of getting variable Name1 back to the server.

Cheers.
Dave