Passing multiple values accross a hyperlink ?

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Passing multiple values accross a hyperlink ?

    Hi,

    I have a link as follows:

    <A HREF=""Tracker.asp?MovementID=" & RS("MovementID") & " PONumber=" &
    RS("PONumber") & """>" & RS("MovementID") & "</A>

    I am trying to pass: MovementID & PONumber.
    On linking to Tracker.asp,

    MovementID = 2257 PONumber=21071045
    PONumber = Empty

    I am just testing this with Request.querystring.

    What have I done wrong, how can I separate these values ?


    Thanks

    David
    David Guest

  2. Similar Questions and Discussions

    1. Passing multiple session values from cold fusion into aflash movie
      Hello all, I know that to pass multiple variables into a flash movie you could use the embed tag like this(with the & between each variable): ...
    2. pass info accross multiple domains - is it possible
      Hi I'm trying to pass some information accross multiple domains (there's a twist to this particular situation that makes me wonder if this is...
    3. #6374 [Csd]: include_path in .htaccess accross multiple vhosts
      ID: 6374 Updated by: sniper@php.net Reported By: jesper at jdn dot dk Status: Closed Bug Type: ...
    4. Passing a variable in a hyperlink???
      I need to create an email with a hyperlink to go to one person and when they click it, it will take them to one specific page and load the right...
    5. Passing multiple values using Response.Redirect
      hie there, i want to be able to pass multiple parameters to another page. currently, i am able to do so, but somehow i feel it is not the correct...
  3. #2

    Default Re: Passing multiple values accross a hyperlink ?

    The items need to be separated with a & in the URL, like so:

    <A HREF=""Tracker.asp?MovementID=" & RS("MovementID") & "&PONumber=" &
    RS("PONumber") & """>" & RS("MovementID") & "</A>

    Ray at work

    "David" <david@scene-double.co.uk> wrote in message
    news:c178e3e8.0309160552.3735c97e@posting.google.c om...
    > Hi,
    >
    > I have a link as follows:
    >
    > <A HREF=""Tracker.asp?MovementID=" & RS("MovementID") & " PONumber=" &
    > RS("PONumber") & """>" & RS("MovementID") & "</A>
    >
    > I am trying to pass: MovementID & PONumber.
    > On linking to Tracker.asp,
    >
    > MovementID = 2257 PONumber=21071045
    > PONumber = Empty
    >
    > I am just testing this with Request.querystring.
    >
    > What have I done wrong, how can I separate these values ?
    >
    >
    > Thanks
    >
    > David

    Ray at Guest

  4. #3

    Default Re: Passing multiple values accross a hyperlink ?

    hi,
    where are the ASP open and close tags in your A Href, RS("MovementID") etc.
    are not enclosed in ASP tags therefore are not ASP code. Try this:
    <A
    HREF="Tracker.asp?MovementID=<%=RS("MovementID")%> &PONumber=<%=RS("PONumber"
    )"><%= RS("MovementID")%></A>

    Hope this helps

    David

    "David" <david@scene-double.co.uk> wrote in message
    news:c178e3e8.0309160552.3735c97e@posting.google.c om...
    > Hi,
    >
    > I have a link as follows:
    >
    > <A HREF=""Tracker.asp?MovementID=" & RS("MovementID") & " PONumber=" &
    > RS("PONumber") & """>" & RS("MovementID") & "</A>
    >
    > I am trying to pass: MovementID & PONumber.
    > On linking to Tracker.asp,
    >
    > MovementID = 2257 PONumber=21071045
    > PONumber = Empty
    >
    > I am just testing this with Request.querystring.
    >
    > What have I done wrong, how can I separate these values ?
    >
    >
    > Thanks
    >
    > David

    David Guest

  5. #4

    Default Re: Passing multiple values accross a hyperlink ?


    Thanks Ray,

    I did try to send a thanks yesterday, but for some reason I could not
    post....so Thanks very much for your prompt support....Excellent code.



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    David Gordon Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139