Thanks, I'm reading
http://www.sys-con.com/coldfusion/article.cfm?id=388 right now.

Thanks,
Jamie

On Tue,  9 Jul 2002 13:31:59 -0700, in cf-talk you wrote:

>Here's a version of that tag.  Snipped it out of an app I have that uses it.  Got it 
>from a link on http://forta.com awhile back.  I think the only meaningful thing I 
>changed was add a test to see if cgi.query_string was GT 0.
>
>If you use Apache, you'll need to substitute CGI.REQUEST_URI for CGI.PATH_INFO
>
>
><CFPARAM NAME="variables.FirstPart" DEFAULT="url." TYPE="string">
><CFPARAM NAME="ATTRIBUTES.delimiter" DEFAULT="/" TYPE="string"> 
><CFSET variables.query_string_length=Len(CGI.PATH_INFO)-Len(CGI.SCRIPT_NAME)>
><CFIF variables.query_string_length GT 0>
>       <CFSET variables.query_string=Right(CGI.PATH_INFO, 
>variables.query_string_length)> 
>       <CFSET variables.items=ListLen(variables.query_string, ATTRIBUTES.delimiter)> 
>       <CFIF variables.items MOD 2 IS 0> 
>               <CFLOOP FROM="1" TO="#variables.items#" STEP="2" INDEX="i"> 
>                       <CFSET variables.i1=ListGetAt(variables.query_string, i, 
>ATTRIBUTES.delimiter)>
>                       <CFSET variables.i2=ListGetAt(variables.query_string, i+1, 
>ATTRIBUTES.delimiter)> 
>                       <CFSET "#variables.FirstPart##variables.i1#"=variables.i2>
>               </CFLOOP>
>       </CFIF>
></CFIF>
>
>
> 
>             
>
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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

Reply via email to