If you know which parameter you want, you can use ListFirst or ListLast. If you want 
both parameters, then they're already in a comma separated list for you (in CFMX)

Chris Norloff


---------- Original Message ----------------------------------
From: Tony Schreiber <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Fri, 6 Jun 2003 16:36:01 -0400 (EDT)

>That's cool, but doesn't work for the duplicate variable issues that I end
>up with:
>
>page.cfm?id=5&value=5&sort=4&id=6 for example...
>
>> Thanks, that's a neat idea!
>>
>> Chris Norloff
>>
>> ---------- Original Message ----------------------------------
>> From: "Ezine" <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> Date:  Fri, 6 Jun 2003 14:23:55 -0400
>>
>> >You can do a listfirst(formfield) to get the first one of the duplicated
>> >parameters.
>> >so if you have
>> >index.cfm?id=6&id=5&id=4
>> >
>> >Coldfusion MX will treat it like,    Id=6,5,4
>> >
>> >and, listfirst will get the first item in the list, (6)
>> >
>> >Listfirst takes two parameters,   listfirst(list,"Delimiters").  Delimiters
>> >is optional(if delimiters is not included, CFMX assumes a comma).
>> >
>> >-Zine
>> >
>> >-----Original Message-----
>> >From: Chris Norloff [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, June 06, 2003 2:13 PM
>> >To: CF-Talk
>> >Subject: Duplicate URL parameters?
>> >
>> >
>> >We're moving from CF4.5 to CFMX (yay!).
>> >
>> >Unfortunately, our Developers have coded duplicate URL parameters, and CFMX
>> >treats them differently that CF 4.5 does.
>> >
>> >It would be nice to just filter out the dupes with a routine called from
>> >Application.cfm (at least until the Developers can catch up).
>> >
>> >Has anybody done this?  If I remove dupes from cgi.query_string and save
>> >cgi.query_string will CF read the query string correctly and get the URL
>> >parameters out of it?
>> >
>> >thanks,
>> >Chris Norloff
>> >
>> >
>> >
>> >
>> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

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

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to