There's a problem with dropdown's name="id" (referring to the id field taken from the value="<%=rs("id")%>").
WHen I change name="id" to name="book" and value="<%=rs("id")%>" to value="<%=rs("book")%>" I would get:
showverse.asp?book=(with the right number with the beginning of that book. But it needs to be more precise, down to the right id)
But if I leave it as "id" although the url will give:
showverse.asp?id=(with the right number but goes to the very first book and chapter)
Code:<form name="books" action="showverse.asp" method="get" target="ifrVerse"> <select name="id" size="10" style="width:200;" onchange="go1();"> <% Do until RS.eof %> <option selected value="<%=RS("id")%>"><%=RS("Book_Title")%> <%=RS("Chapter")%>:<%=RS("Verse")%></option> <% RS.movenext if RS.eof then exit do end if loop %> </select> </td> <tr> <td align="center"> <input type="submit" value=" Search "> <input type="Reset" value=" Clear the words "> </td> </tr> </form>
attachment is the action="showverse.asp" in .txt




Reply With Quote