<cfset data.one = url.one>
<cfset data.two = url.two>
<cfset data.three = url.three>
- The first thing you need to do is grab all of the query string values, this can be accessed from the CGI scope.
- Then we will create a local structure to hold all of our data in my case I just named it data
- Finally we are going to loop our query string using a ampersand as the delimiter. This will give us our key/pair value as the index so to set our structure up we just tell our structure that our key is the first part of the list (using = as delimiter) and the value is the last part of the list.
<cfset str = CGI.QUERY_STRING>
<!--- local structure --->
<cfset data = StructNew()>
<!--- loop our query string values and set them in our structure --->
<cfloop list="#str#" index="key" delimiters="&">
<cfset data["#listFirst(key,'=')#"] = urlDecode(listLast(key,"="))>