Here is one way to loop URL var.
<CFLOOP
delimiters="&"
list="#query_string#"
index="namevaluepair">
<CFOUTPUT>
<CFSET
varname="#left(namevaluepair,find('=',namevaluepair)-1)#">
Name Value Pair: #namevaluepair#<BR>
Variable name: #varname# = [#evaluate('url.#varname#')#]
<br>
</CFOUTPUT>
</CFLOOP>
But the URL vars are in a structure. hmmm...
<cf_objectdump object="#URL3"> works so you can reengineer that code.
but to shorten this works
<CFLOOP item="varname" collection="#URL#">
<CFOUTPUT>#varname#:
#evaluate('url.#varname#')#
</CFOUTPUT><BR></CFLOOP>
From: "Bryan Stevenson" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: URL structure
Date: Tue, 3 Sep 2002 13:16:04 -0700
Hey All,
I'm having trouble finding a snippet to loop over the URL structure...any
examples??
TIA
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists