Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2004
    Posts
    75

    Unanswered: Passing multiple values in a query

    I am doing this:
    <a href="users.asp?FIRM_ID=strFIRM_ID">

    But I would like to send multiple values, something like this:
    <a href="users.asp?FIRM_ID&FIRM_NAME=strFIRM_ID,FIRM_ NAME">

    This does not work, but is there a way to do something like that?

  2. #2
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    you want it more like this
    Code:
    <%
    url="users.asp?FIRM_ID=" & strFIRM_ID & "&FIRM_NAME=" & strFIRM_NAME
    %>
    <a href="<%=url%>">
    think that is about right. Basically you url needs to look like this...
    <a href="users.asp?FIRM_ID=strFIRM_ID&FIRM_NAME=strFI RM_NAME">

  3. #3
    Join Date
    Apr 2004
    Posts
    75
    Quote Originally Posted by rokslide
    you want it more like this
    Code:
    <%
    url="users.asp?FIRM_ID=" & strFIRM_ID & "&FIRM_NAME=" & strFIRM_NAME
    %>
    <a href="<%=url%>">
    think that is about right. Basically you url needs to look like this...
    <a href="users.asp?FIRM_ID=strFIRM_ID&FIRM_NAME=strFI RM_NAME">
    but I want to send two things.. the strFIRM_ID and strFIRM_NAME. How do I put them in there? I see how to do it in the quert string but how do I put them to send?

    Thanks for the reply

  4. #4
    Join Date
    Dec 2003
    Posts
    148
    You will be sent to users.asp with the values on the querystring when the link is clicked..as rok illustrated

    ie

    strFIRMID = MyId
    strFIRM_NAME =MyFirmname

    "users.asp?FIRM_ID=MyID&FIRM_NAME=MyFIRM_NAME"

  5. #5
    Join Date
    Apr 2004
    Posts
    75
    Sorry I did not see the reply correctly.. guess that is what heppens when you get old..

    Thanks again for the reply..

Posting Permissions

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