|
socks -> RE: DW dynamic form problem (9/2/2009 7:40:43)
|
Thanks for the reply. I'm building the pages with the DW application panel, not writing code directly. The resulting code is below. (This is a test run, not the final product.) Also, if it makes any difference, I'm running this locally on IIS: SEARCH PAGE: <form action="results.asp" method="post" name="form1" id="form1"> <select name="select" id="select"> <% While (NOT Recordset1.EOF) %><option value="<%=(Recordset1.Fields.Item("MemberID").Value)%>"><%=(Recordset1.Fields.Item("FirstName").Value)%></option> <% Recordset1.MoveNext() Wend If (Recordset1.CursorType > 0) Then Recordset1.MoveFirst Else Recordset1.Requery End If %> </select> <input type="submit" name="Submit" id="button" value="Submit" /> </form> RESULTS PAGE: <p><%= Request.Form("MemberID") %></p> <table border="1" cellpadding="2"> <tr> <td>MemberID</td> <td>FirstName</td> <td>LastName</td> </tr> <% While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %> <tr> <td><%=(Recordset1.Fields.Item("MemberID").Value)%></td> <td><%=(Recordset1.Fields.Item("FirstName").Value)%></td> <td><%=(Recordset1.Fields.Item("LastName").Value)%></td> </tr> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 Recordset1.MoveNext() Wend %> </table>
|
|
|
|