|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
CGI.QUERY_STRING and escaped URL elements
Hi all,
I'm now using CGI.QUERY_STRING to send URL variables to an action page. the syntax of the URL is: index.cfm?something=something&somethingelse=somethingelse I know the escaped code for ampersand is & and all of my hard coded URL variables use the escaped method. BUT CGI.QUERY_STRING seems to revert the escaped ampersand back into a "&" BEFORE the request is sent to the server. This doesn't break my application BUT it creates a standards compliancy problem. I want my HTML to validate at the W3.org but the unescaped "&" is NOT standard compliant. Can anyone help me? I think this might be a unique question in this forum. Nathan |
|
#2
|
|||
|
|||
|
You can try using URLDecode() to convert it back to a standard ampersand.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
How do I write URLEncode and URLDecode?
Up to now, I've never used URLDecode and URLEncode for certain reasons. This means I don't know the syntax or code structure to make your suggestion work.
This is the string I need to encode then decode. action="<cfoutput>#CGI.SCRIPT_NAME#?#CGI.QUERY_STRING#</cfoutput>" Will the ENCODE go between the pounds on the QUERY_STRING or somewhere else? How to I DECODE this string and where? Thanks... Nathan |
|
#4
|
|||
|
|||
|
I'd just try it a few different ways. Maybe something like this?
action="<cfoutput>#CGI.SCRIPT_NAME#?#urlDecode( CGI.QUERY_STRING )#</cfoutput>" |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > CGI.QUERY_STRING and escaped URL elements |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|