Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL Parameter - Value includes #

Status
Not open for further replies.

bloise

Programmer
Jun 21, 2001
67
US
Hello,

I have a coldfusion app, where we pass a value within a url parameter that contains a # sign. We need this because, the app jumps to a particular hyperlink.

Ex: #61.51e will take you to chapter 61 stuff. Chapter 61 is contained within its own coldfusion file.

So I have a little traffic code module that needs to extract
the first 2 characters after the # sign to know which file to call.

However whenever I try to exam the URL parameter, cold fusion says it is not defined. The # is confusing the isDefinted function.

I hope this makes some sense. Anyway thanks for your help
Mike

 
Have you tried using UrlEncodedFormat when passing your URL variables? It will keep CF from freaking out when it sees a #.



Hope This Helps!

Ecobb

"My work is a game, a very serious game." - M.C. Escher
 
bloise, I had this problem before, place two # then the anchor tag.

Code:
[COLOR=red]
<cfoutput>
....
....
....
a href="someplage.html##anchorname
....
....
....
</cfoutput>
[/color]

In CF placing another # makes the CF administrator know that the second # is not part of CF code.

Hope this helps.


____________________________________
Just Imagine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top