Parsing Name=Value Pairs in a URL

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Parsing Name=Value Pairs in a URL

    I want to quickly parse a URL to retrieve it's set of URL variables. What is
    the easiest way to fo this? I do not want to parse it using the URL scope. I
    want to search the string and find the vars using based upon the & and =
    characters. I thought there might be a UDF for this at CFLib.org but didn't
    find one. Thanks for the help...

    Motorsports Webmaster Guest

  2. Similar Questions and Discussions

    1. Printers' pairs in InDesign
      How do I make IDCS print out printers' pairs so that I can make up booklets on my desktop printer? In PageMaker you went to 'Create Booklet' in...
    2. Using key-pairs in a hosted environment
      Hi We have a requirement to process "digitally signed" XML-based software licenses using an ASP.NET web site, hosted on an ISP server. I read an...
    3. Creating name value pairs in .txt file.
      I'm using Director MX on a Windows ME platform. The goal is to export/transfer text information gathered from within a projector to a word...
    4. Handling name value pairs in a web service
      0. Assume an application can send data using HTTP POST. 1. For some reason, it sends the name value pairs using the syntax x.y -- which is...
    5. Help with Pairs / Memory Game,
      Hi would it be possible for you to send or make available your memory game as I am in the early stages of learning lingo and would love to see how...
  3. #2

    Default Re: Parsing Name=Value Pairs in a URL

    Using <cfloop collection="#url#" ...> would be the easiest, but you could also:

    <cfloop list="#CGI.QUERY_STRING#" delimiters="&" index="item">
    #ListGetAt(item,1,"=")# is set to #ListGetAt(item,2,"=")# <br/>
    </cfloop>

    kyle969 Guest

  4. #3

    Default Re: Parsing Name=Value Pairs in a URL

    That'll do it. Thanks for the help...! :D
    Motorsports Webmaster 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