• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

SET A SESSION BASED ON A FORM ELEMENT

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
Azurden
Asked:
Azurden
1 Solution
 
kevp75Commented:
in your form procesing code drop this line in:

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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now