Forums
This topic is locked
Drop Down values to Session
Posted 16 Aug 2008 21:12:18
1
has voted
16 Aug 2008 21:12:18 David Soros posted:
How can I retreive both the LABEL and VALUE selected from a dynamic drop down So I can set them to my 2 different session
variables, Session("PPrice" and Session("PType"
<pre id=code><font face=courier size=2 id=code>
<select name="selectPrice" size="1" id="selectPrice">
<option value="0">Select One</option>
<%
While (NOT rsPricing.EOF)
%>
<option value="<%=(rsPricing.Fields.Item("PhotoPrice".Value)%>">
<%=(rsPricing.Fields.Item("PhotoSize".Value)%></option>
<%
rsPricing.MoveNext()
Wend
If (rsPricing.CursorType > 0) Then
rsPricing.MoveFirst
Else
rsPricing.Requery
End If
%></font id=code></pre id=code>
Thanks
Edited by - tkdave on 16 Aug 2008 21:13:09
Edited by - tkdave on 16 Aug 2008 21:13:40