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

Listbox Passing variable

Status
Not open for further replies.

021363

MIS
Joined
May 5, 1999
Messages
2
Location
US
How do I pass a variable from a list box in aaa.asp to bbb.asp?
 
You can use one session or passing the value in the URL.<br>
<br>
Example:<br>
session("mylistbox") = request("NAME OF YOUR LIST")<br>
Myvar = session("mylistbox")<br>
<br>
or<br>
<br>
OF YOUR LIST")<br>
<br>
in the page bbb.asp you can get this value using this:<br>
Myvar = request.querystring("Mylistbox")
 
or you could do the following<br><br>aaa.asp<br>&lt;FORM name=&quot;form1&quot; method=&quot;bbb.asp&quot;&gt;<br>&lt;SELECT name=&quot;listbox&quot;&gt;<br>--<br>--<br>--<br>&lt;/SELECT&gt;<br>A submit button<br>&lt;/FORM&gt;<br><br><br><br>bbb.asp<br>listbox_Value = request.form(&quot;listbox&quot;)<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top