Things I need to know:
Q: What parameters were passed when I loaded this page and what are their values?
Q: Did those parameters come a form or a url?
Q: Do those need to be written into an inpage var, or conjoined on a url-query string?
Bear in mind var names should be distinct in the site (so one thing coming in for page X, if applied to a query string for page Y, would not affect it), and that any bound/included/called pages using the vars we have here of course must use default cfparams and/or check for existence of their needed params.
<!--- get any and all parameters passed on the url ---><cfset paramsurl = structKeyList(url)><!--- put a parameter in place in a new var, this will be ignored (like 1=1 in SQL) ---><cfset paramsurllist = "x=0"><!--- loop through the list of params ---><cfloop index="ndx01" list="#paramsurl#"><!-- see it for debug: <cfoutput><div>#ndx01# = #url[ndx01]#</div></cfoutput>--><!--- build the query string for use in links if needed ---><cfset paramsurllist = '#variables.paramsurllist#' & '&#ndx01#=#url[ndx01]#'><!--- set the var for use in-page if needed ---><cfset #ndx01# = "#url[ndx01]#"></cfloop><!-- see it for debug: show me my query string <cfoutput>#paramsurllist#</cfoutput>--><!--- get any and all parameters passed on the form ---><cfset paramsform = structKeyList(form)><!--- put a parameter in place in a new var, this will be ignored ---><cfset paramsformlist = "x=0"><!--- loop through the list of params ---><cfloop index="ndx02" list="#paramsform#"><!-- see it for debug: <cfoutput><div>#ndx02# = #form[ndx02]#</div></cfoutput> --><!--- build the query string for use in links if needed ---><cfset paramsformlist = '#variables.paramsformlist#' & '&#ndx02#=#form[ndx02]#'><!--- set the var for use in-page if needed ---><cfset #ndx02# = "#url[ndx02]#"></cfloop><!-- see it for debug: show me my query string <cfoutput>#paramsformlist#</cfoutput> --><!--- now, work out generic all-inclusive string to add as needed to anything "pulled in" ---><!--- if incoming url params existed ---><cfif variables.paramsurllist is not 'x=0'><!--- make a generic caller param string from the url stuff. ---><cfset addcallerparams = "#variables.paramsurllist#"><!--- if instead any params came from a form ---><cfelseif variables.paramsformlist is not 'x=0'><!--- make a generic caller param string from the form stuff. ---><cfset addcallerparams = "#variables.paramsformlist#"><!--- worst case just put our default param on there. ---><cfelse><cfset addcallerparams = "x=0"></cfif>
<cfset mylink = "_2012a_daily.cfm?#variables.addcallerparams#">
(then use in context)