?
Solved

SET A SESSION BASED ON A FORM ELEMENT

Posted on 2007-03-30
3
Medium Priority
?
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 25

Accepted Solution

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

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

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

801 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