coconutelegraph,
(I don't know how familiar you are with ColdFusion...) But to expand on what SidFishes' said, anytime url variables are passed to ColdFusion, CF automatically decodes the values and makes the variables available in a special system structure named URL. So you can access any url variable through the URL scope: either using dot notation or array notation: url["variablename"]
<!--- from SidFishes' example ---->
<a href="somesite.com/page.cf
<!--- Show all variables in the URL scope --->
<cfdump var="#URL#" label="All URL Variables">
<!--- Just for debugging ---->
<cfif NOT structKeyExists(URL, "userID")>
DEBUGGING: (Sorry. The variable URL.userID isn't defined yet)
<cfabort>
</cfif>
<!--- Show value ---->
<cfoutput>
URL.userID (using dot notation) = #url.userId#</br>
#url["userId"] (using array notation) = #url["userId"]#</br>
</cfoutput>
Main Topics
Browse All Topics





by: SidFishesPosted on 2009-09-16 at 20:48:53ID: 25352685
cf sees the url scope and can reference it by simply
m?userid=b ar">
<a href="somesite.com/page.cf
<cfset foo = url.userid>