[cfaussie] Re: Passing the '' symbol in a URL.
Hi Travis, %26 replaces in a url. so your url should read : ?Category=Tables%26ChairsCategory2=Leather you should probably have a look at the URLEncodedFormat function, that might help somewhat. regards mizdog! On 10/5/07, TJS [EMAIL PROTECTED] wrote: Hi, I was wondering whether anyone knew if coldfusion had a special function that could read the symbol passed into a URL - rather than treating it as a URL appendage? i.e: ?Category=TablesChairsCategory2=Leather On the receiving page... Field1 = 'URL.Category' Field2 = 'URL.Category2' My problem is that:- Field1 = Tables -- and should be -- Field1 = TablesChairs In my database, there are many symbols, and when this is passed in the URL, anything after the symbol is dropped. Hopefully Coldfusion has an easy fix to this. Thanks in advance for any advice. Cheers, Travis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Passing the '' symbol in a URL.
You need to URLEncode the string or place quotes around the string, preferably the URLEncode is the best choice. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of TJS Sent: Friday, 5 October 2007 2:53 AM To: cfaussie Subject: [cfaussie] Passing the '' symbol in a URL. Hi, I was wondering whether anyone knew if coldfusion had a special function that could read the symbol passed into a URL - rather than treating it as a URL appendage? i.e: ?Category=TablesChairsCategory2=Leather On the receiving page... Field1 = 'URL.Category' Field2 = 'URL.Category2' My problem is that:- Field1 = Tables -- and should be -- Field1 = TablesChairs In my database, there are many symbols, and when this is passed in the URL, anything after the symbol is dropped. Hopefully Coldfusion has an easy fix to this. Thanks in advance for any advice. Cheers, Travis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Passing the '' symbol in a URL.
in javascript you can use the escape() function for the same effect. xmlformat() htmleditformat() jsstringformat() should be used on all user provided data written back to the browser, they prevent errors from special characters and prevent hacking, they are like the CFQUERYPARAM for the browser z On 10/5/07, Andrew Scott [EMAIL PROTECTED] wrote: You need to URLEncode the string or place quotes around the string, preferably the URLEncode is the best choice. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone:+613 8676 4223 Mobile: 0404 998 273 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of TJS Sent: Friday, 5 October 2007 2:53 AM To: cfaussie Subject: [cfaussie] Passing the '' symbol in a URL. Hi, I was wondering whether anyone knew if coldfusion had a special function that could read the symbol passed into a URL - rather than treating it as a URL appendage? i.e: ?Category=TablesChairsCategory2=Leather On the receiving page... Field1 = 'URL.Category' Field2 = 'URL.Category2' My problem is that:- Field1 = Tables -- and should be -- Field1 = TablesChairs In my database, there are many symbols, and when this is passed in the URL, anything after the symbol is dropped. Hopefully Coldfusion has an easy fix to this. Thanks in advance for any advice. Cheers, Travis. -- Zac Spitzer http://zacster.blogspot.com/ +61 3 9018 5778 (voip via my pc) +61 405 847 168 (aussie moible) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---