|
-
May 5th, 2001, 07:39 PM
#1
Thread Starter
Lively Member
please help me its an easy one but an urgent one ??
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!!
-
May 5th, 2001, 08:56 PM
#2
Good Ol' Platypus
...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:
Code:
<INPUT TYPE=hidden NAME=MyHiddenInput VALUE=<%=Request.Form("MyVariable")%>
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 5th, 2001, 09:34 PM
#3
Thread Starter
Lively Member
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 ????
-
May 7th, 2001, 03:55 PM
#4
Lively Member
should work
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%>>
-
May 7th, 2001, 04:34 PM
#5
Good Ol' Platypus
Oh!!!
If you are using METHOD=GET on your form, (I think it is default) then you must use Request.Querystring("Name_Of_Text_Box")
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|