Referencing url variable in cfquery that contains # sign
I am using CF 9 and cannot figure out how to reference a url variable in my cfquery that contains a "#" character as part of the string name (i.e. http://somepage.cfm?variable_name=tom#h.
When I try to execute the query, it is only pulling "tom" due to the # sign. I tried to double up the # sign (##) but that didn't work either.
<cfquery NAME="qryGraph"
DATASOURCE="DB2"
USERNAME=#request.username#
PASSWORD=#request.password#>
SELECT DATE
FROM TABLE
WHERE NAME = '#variable_name#'
</cfquery>
Any help would be appreciated!
Tom
