Click to See Complete Forum and Search --> : pass values from page to page


airski
03-05-2003, 09:22 AM
I have a form that contains a field called "color" with the value "color". I know that i can get that value by using the color=Request.Form("color"). I want to take the value of color and pass it to another page. I don't need to use the actual value of it until about 3 pages later. I simply want to take the value from the form and hold it until i need it 3 pages later then display it on the screen.

Any help?

thanks

Bullschmidt
03-05-2003, 01:50 PM
Session("MyColor") = "Red"

And 3 pages later:
Response.Write Session("MyColor")

airski
03-05-2003, 03:25 PM
So on the page that gets the input from the form i don't have to use Request.Form to get the form information?

I can simply use: Session("color") = "color" ?

Bullschmidt
03-05-2003, 03:36 PM
Yes you do.

So how about this:

On the page that receives the post:
Session("MyColor") = Request.Form("MyColor")

And 3 pages later:
Response.Write Session("MyColor")