PDA

View Full Version : Set a session variable from a combo list


Gary Williams
03-04-2008, 09:19 AM
Hi All,

In an application, I have a dropdown (combo) list of products, ie, table, bed, chair, etc.

When a user selects one of these choices, ie, table, I want to write a session variable:

session("product") = table

How do I do this?

Regards

Gary

Spudhead
03-04-2008, 02:22 PM
There's several ways to do it: all involve making a round trip to the server.

Simplest example I can think of... your dropdown is in a <form>, right? Set the form to submit to your ASP page, and put this in the ASP page:

<%
session("product") = request.form("my_combobox_name")
%>