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 to different asp's

Status
Not open for further replies.

princessk1

Programmer
Feb 28, 2002
74
CA
I am trying to pass a variable to different pages. It worked before I added another form to the page. Each submit button calls a different asp. The code I am using to get the variable is...

mnth = application("monthnum")

Thanks in advance.

 
Where do you set it first? Also try to stick with session vars rather than application. If someone else use the same form than it's gonna be messed up.
 
try

<%
Dim mnth

mnth = month(date)

Session(&quot;monthnum&quot;) = mnth

Response.Write(Session(&quot;monthnum&quot;)

%> www.vzio.com
ASP WEB DEVELOPMENT



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top