Solved

SET A SESSION BASED ON A FORM ELEMENT

Posted on 2007-03-30
3
192 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 50 total points
ID: 18825335
in your form procesing code drop this line in:

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP Classic, check if Querystring is UCase or LCase 10 35
Pass SQL to JSON. Page is in classic ASP and using Jquery 4 57
Session on Html 8 55
SP result not being displayed 5 68
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

732 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