Solved

SET A SESSION BASED ON A FORM ELEMENT

Posted on 2007-03-30
3
188 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

757 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

23 Experts available now in Live!

Get 1:1 Help Now