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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send a server side variable to new page

Status
Not open for further replies.

nogscript

Programmer
Sep 30, 2004
3
AU
Hi

I have built an html string on an asp page based on user input from the previous page which I want to send to another page from which it will be emailed. Can someone please help me how to do this...basically the code goes:

<%Dim htmlMess
'htmlMess is built based on user input from previous page
htmlMess = "...."
...
...
...
...
htmlMess = htmlMess & "..."
%>

I then want to send the variable htmlMess to a new page when the user clicks a button, but I cannot figure out how to access htmlMess from the next page. Is there a way to reference variables between pages? and if not how should I go about accessing the html string that I require?

Thanks
 
you'll have to store it somewhere, such as a session variable or a hidden form field.

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top