clientuser
Programmer
how do you pass a string variable from one .asp page to another?
any examples would be greatly appreciated
any examples would be greatly appreciated
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<A HREF="page2.asp?var1=fred&var2=wilma">Page 2</A>
<%
Dim variable1, variable2
variable1 = Request.QueryString("var1")
variable2 = Request.QueryString("var2")
%>
<FORM ACTION="page2.asp" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="var1" VALUE="some text here"></INPUT>
<INPUT TYPE="SUBMIT" VALUE="Click to go to Page 2"></INPUT>
</FORM>
<%
Dim variable1
variable1 = Request.Form("var1")
%>