This will fail if you have a parameter without value (e.g. test&test2=1). Also, cf knows lists, so no need to convert to array first: <cfoutput> <cfloop list="#querystring#" index="i" delimiters="&"> Variable: #ListFirst(i,"=")#<br> Value: #URLDecode(ListRest(i,"="))#<br> </cfloop> </cfoutput>
Pascal > -----Original Message----- > From: Umer Farooq [mailto:[EMAIL PROTECTED] > Sent: 20 October 2004 20:39 > To: CF-Talk > Subject: Re: Query string in db field > > Sample code-- no error checking.. bunch of other ways to do it also.. > > > <cfset eachString = arrayNew(1)> > <cfset pairedValue= arrayNew(1)> > <cfset queryString = "name=somename&id=12&address=123&email=yes"> > <cfset eachString = listToArray(queryString , "&")> > <cfloop from="1" to="#arrayLen(eachString)#" index="i"> > <cfset pairedValue=listToArray(eachString[i], "=")> > <cfoutput> > Variable: #pairedValue[1]#<br> > Value: #pairedValue[2]#<br> > </cfoutput> > </cfloop> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.houseoffusion.com/banners/view.cfm?bannerid=11 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182150 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

