Solved

SET A SESSION BASED ON A FORM ELEMENT

Posted on 2007-03-30
3
189 Views
Last Modified: 2013-11-19
Hey All

Have a little prob here.  I need to set a session based on the value of a drop down box value in a form when the form is submitted...

Here is the form object that I need to have a session for (the form field is called "MODULE")...

<select name="MODULE" id="MODULE">
                <option value="">Select One...</option>
                <%
While (NOT MODULE.EOF)
%>
                <option value="<%=(MODULE.Fields.Item("ID_MODULE").Value)%>"><%=(MODULE.Fields.Item("MODULE_NAME").Value)%></option>
                <%
  MODULE.MoveNext()
Wend
If (MODULE.CursorType > 0) Then
  MODULE.MoveFirst
Else
  MODULE.Requery
End If
%>
              </select>
0
Comment
Question by:Azurden
3 Comments
 
LVL 25

Accepted Solution

by:
kevp75 earned 50 total points
ID: 18825335
in your form procesing code drop this line in:

session("MODULE") = request.form("MODULE")
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now