Results 1 to 3 of 3

Thread: how to include id# field of db in url?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    447

    how to include id# field of db in url?

    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")%>&nbsp;<%=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
    Attached Files Attached Files
    Compare bible texts (and other tools):
    TheWheelofGod

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width