> I'm trying to get the name/value pair from url variables. > Lets say I have a url like this: > > http://someurlhere.com?Src=blahblah&storyID=1234 > > Now if I do the following I'll get the name/value pair of the > URL vars: > > <cfloop collection=#url# item="urlVar"> > <cfoutput>#urlVar# = #url[urlVar]#</cfoutput><br /> </cfloop> > > My problem is the name element doesn't keep the same case as > the actualy url variable name. Src and storyID gets > displayed as SRC and STORYID in the output. How can I keep > the case the same when I loop thru the URL structure?
You can't, really. CF doesn't think that's important information, so it doesn't store variable names that way. This is common in case-insensitive programming languages, I suspect. You could, however, examine the query string directly. But why do you need the case of the variable name to be preserved anyway? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239618 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

