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

session variable set to select menu

Status
Not open for further replies.

carranz

Technical User
Nov 17, 2006
40
US
I have a pull down menu
<select name="dept" id="dept">
<option>FTP_files</option>
<option>test</option>
<option>test1</option>
<option>test2</option>
<option>test3</option>
</select>

I would like to create a session variable so I could pass the selected value from the menu to the next page.

how can this be done....thanks

I would appreciate any help
 
did you mean this:
Code:
first, go ahead and give values to your options...
<select name="dept" id="dept">
          <option value="FTP_files">FTP_files</option>
          <option value="test">test</option>
          <option value="test1">test1</option>
          <option value="test2">test2</option>
          <option value="tes3">test3</option>
</select>

 then you can set the session variable...

Session("myselection") = Request.form("dept")

-DNG
 
I tried this but on the next page Im trying to load files so I get an error BinaryRead error. So I'm trying to figure out how to fix this problem.

if I change my form from post to (get) then I use the request.querystring this works but loading the file does not. so I change the form back to (post) then my file loads but I can't pass the menu value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top