Forums
This topic is locked
How to pass dynamic list/menu in forms?
17 Jan 2006 13:45:57 Malcolm X posted:
Hi there, this one is a little complicated.I have a form called form1.asp which has 10 dynamic list menus. This is the code for one of them. In this form I have a recordset.
<select name="select1" id="select1">
<option value="selectCategory">SelectCategory</option>
<%
While (NOT rsCategory.EOF)
%>
<option value="<%=(rsCategory.Fields.Item("CategoryTitle"


<%
rsCategory.MoveNext()
Wend
If (rsCategory.CursorType > 0) Then
rsCategory.MoveFirst
Else
rsCategory.Requery
End If
%>
</select>
Else
rsCategory.Requery
End If
%>
</select>
In a second form called form2.asp, I have a dynamic text field to carry the information to that page. The code for the text field is here.
<input name="select1" type="hidden" value="<%=(rsCategory.Fields.Item("CategoryTitle"

When I fill in the form and submit. The results of each field are all the same, and not the field that I selected.
Can anyone suggest what to do here.
IF you require more code, please ask.
Mally.