PDA

Click to See Complete Forum and Search --> : please help me its an easy one but an urgent one ??


johnnyboy23
May 5th, 2001, 07:39 PM
i have 4 forms and want to at the end of the 4 forms only then do my insert into the database how do i use hidden fields on each page to keep parsing the data to the final page so i can do my insert ???

IE
firstname is the naem of my textbox control on my firstform how do i get the data to the hiddenfield called firstname in my Second form
i cannot get this right

hiddenform value = request.form("firstname")

but this does nothing ???

pelase help me out!!

Sastraxi
May 5th, 2001, 08:56 PM
...because ASP cannot refrence objects on the HTML page !!

ASP is Server Side, so it is executed on the server. HTML/Javascript is processed on the client. So the two have no way of interacting with each other.

But...

You can do it this way:


<INPUT TYPE=hidden NAME=MyHiddenInput VALUE=<%=Request.Form("MyVariable")%>

johnnyboy23
May 5th, 2001, 09:34 PM
i have tried using your method..
it does not work

im using ASP pages and need to parse the data from my first asp form
to the send page/form into a hidden field on my second page ????

ttlai
May 7th, 2001, 03:55 PM
sastraxi's method should work...

on second page...

<% dim strFName
strFName = request.form("nameOfTextBox")%>

then in your form, pass strFName as a hidden variable

<input type="hidden" name="firstName" value=<%=strFName%>>

Sastraxi
May 7th, 2001, 04:34 PM
If you are using METHOD=GET on your form, (I think it is default) then you must use Request.Querystring("Name_Of_Text_Box")