Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing variables between multiple pages?????

Status
Not open for further replies.

pilg

Programmer
Feb 16, 2001
82
GB
Hi,

I have a variable selected from a list box which is then passed to 'page2', I then need to capture this variable and pass it to 'page3'? I've tried using a hidden form but just can't get it to work, any ideas?
 
[tt]
<%
When you pass it the first time is it going into a database? if so simply call it from a record set
else
create a session(&quot;variable&quot;) of it
and
use it where you need to
end else
%>
[tt]&quot;A Successful man is one who can build
a firm foundation with the bricks
that others throw at him&quot;
[/tt]

star.gif
star.gif
star.gif
star.gif

 
No its not going into a database, I'm new to this ASP stuff, what do you mean by a session variable?ho do I set one up?
 

Set it like this
session(&quot;test&quot;)=variable
newvariable=session(&quot;test&quot;) on pages you need to pass the variable to.
 


page 2

value = Request.form(&quot;List Box Name&quot;)

<Form method=post acion=page3>
<Input type =hidden value=<%=value%>%>
<Input type =submit%>
</Form>

this way u can do it

Bye

prasad
sawnaprasad2001@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top