dropdown menus OnClick Store To session variable,
its been a long day, lol
basicly i got 2 dropdown menus
both connected to a DB
1st for manufacture
2nd for modle
manufacture when page loads already has all car manufactures listen
what i need to do is
onclick save the clicked item into a session variable named sessmanufacture
Session("sessmanufacture")
i need just a quick example where to put the onlick im doing it in notepad pretty much if any one can help
this is what i have
-----------------------------------------------
<select name="manmenu" id="manmenu">
<%
While (NOT getmanu.EOF)
%>
<option value="<%=(getmanu.Fields.Item("Manufactures").Val ue)%>">onClick=(Session("sessmanufacture")=Request .Form("manmenu") </option>
<%
getmanu.MoveNext()
Wend
If (getmanu.CursorType > 0) Then
getmanu.MoveFirst
Else
getmanu.Requery
End If
%>
--------------------------------------
but its not working also id like to know cuz ive been reading this asp book, a session variable would be the proper kind of variable for this information right? i mean application variables r harder to move to other pages, and are more of a pain.
but yea please gimmi a example on the onlick for a dynamic menu lol
thank you
peace
|